Merge branch 'release_24.0' into dev

This commit is contained in:
mvdbeek
2024-03-13 10:14:06 +01:00
3 changed files with 9 additions and 7 deletions
@@ -250,10 +250,11 @@ function onDisplay() {
// but we're using a __vkey__ bit as a workaround
// Only conditionally force to keep urls clean most of the time.
if (route.path === itemUrls.value.display) {
// @ts-ignore
// @ts-ignore - monkeypatched router, drop with migration.
router.push(itemUrls.value.display, { title: props.name, force: true });
} else if (itemUrls.value.display) {
router.push({ path: itemUrls.value.display, params: { title: props.name } });
// @ts-ignore - monkeypatched router, drop with migration.
router.push(itemUrls.value.display, { title: props.name });
}
}
}
+3 -3
View File
@@ -4329,9 +4329,9 @@ class Npz(CompressedArchive):
def sniff(self, filename: str) -> bool:
try:
npz = np.load(filename)
if isinstance(npz, np.lib.npyio.NpzFile):
return True
with np.load(filename) as npz:
if isinstance(npz, np.lib.npyio.NpzFile) and any(f.filename.endswith(".npy") for f in npz.zip.filelist):
return True
except Exception:
return False
return False
+3 -2
View File
@@ -90,6 +90,7 @@ from galaxy.tools.parameters import (
visit_input_values,
)
from galaxy.tools.parameters.basic import (
ConnectedValue,
DataCollectionToolParameter,
DataToolParameter,
RuntimeValue,
@@ -1520,12 +1521,12 @@ class WorkflowContentsManager(UsesAnnotations):
if name:
input_dicts.append({"name": name, "description": annotation_str})
for name, val in step_state.items():
if isinstance(val, RuntimeValue):
if isinstance(val, RuntimeValue) and not isinstance(val, ConnectedValue):
input_dicts.append({"name": name, "description": f"runtime parameter for tool {module.get_name()}"})
elif isinstance(val, dict):
# Input type is described by a dict, e.g. indexed parameters.
for partval in val.values():
if isinstance(partval, RuntimeValue):
if isinstance(partval, RuntimeValue) and not isinstance(val, ConnectedValue):
input_dicts.append(
{"name": name, "description": f"runtime parameter for tool {module.get_name()}"}
)