Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly improve workflow warnings/errors logging. #4396

Merged
merged 3 commits into from Aug 18, 2017

Conversation

jmchilton
Copy link
Member

  • Better assertion message for unknown module types.
  • Warn in the logs if an input connection is defined but unused while connecting up things for tool execution.

More small usability improvements from the CWL branch.

@@ -965,7 +977,7 @@ def from_dict( self, trans, d, **kwargs ):
Return module initialized from the data in dictionary `d`.
"""
type = d['type']
assert type in self.module_types
assert type in self.module_types, "Unexpected workflow step type [%s] not found in [%s]"% (type, self.module_types.keys())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lib/galaxy/workflow/modules.py:980:97: E225 missing whitespace around operator

@@ -810,6 +810,9 @@ def execute( self, trans, progress, invocation, step ):
# TODO: Move next step into copy()
execution_state.inputs = make_dict_copy( execution_state.inputs )

expected_replacement_keys = set(step.input_connections_by_name.keys())
found_replacement_keys = set([])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set() should be equivalent to set([])

jmchilton added a commit to jmchilton/galaxy that referenced this pull request Aug 9, 2017
@nsoranzo nsoranzo merged commit 784e6f5 into galaxyproject:dev Aug 18, 2017
@nsoranzo nsoranzo deleted the workflow_warnings branch July 3, 2021 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants