mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Simple filter_output
This obviously doesn't work (yet) with filters that work on the input dataset, but this already removes a lot of outputs that arent' going to be produced based on static options. Since exceptions default to priduing the dataset this isn't much harm.
This commit is contained in:
@@ -23,6 +23,7 @@ from galaxy.tools import (
|
||||
DefaultToolState,
|
||||
ToolInputsNotReadyException
|
||||
)
|
||||
from galaxy.tools.actions import filter_output
|
||||
from galaxy.tools.execute import execute, MappingParameters, PartialJobExecution
|
||||
from galaxy.tools.parameters import (
|
||||
check_param,
|
||||
@@ -930,6 +931,8 @@ class ToolModule(WorkflowModule):
|
||||
data_outputs = []
|
||||
if self.tool:
|
||||
for name, tool_output in self.tool.outputs.items():
|
||||
if filter_output(tool_output, self.state.inputs):
|
||||
continue
|
||||
extra_kwds = {}
|
||||
if tool_output.collection:
|
||||
extra_kwds["collection"] = True
|
||||
|
||||
@@ -284,6 +284,7 @@ def __mock_tool(
|
||||
format='input',
|
||||
format_source=None,
|
||||
change_format=[],
|
||||
filters=[],
|
||||
label=None)},
|
||||
params_from_strings=mock.Mock(),
|
||||
check_and_update_param_values=mock.Mock(),
|
||||
|
||||
Reference in New Issue
Block a user