Skip to content

Commit

Permalink
Merge pull request #90 from mvdbeek/update_comment
Browse files Browse the repository at this point in the history
Update label comment
  • Loading branch information
nsoranzo authored May 12, 2023
2 parents 2ef27eb + 2a7b979 commit da3ed63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gxformat2/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def from_galaxy_native(native_workflow_dict, tool_interface=None, json_wrapper=F

module_type = step.get("type")
if module_type in ['data_input', 'data_collection_input', 'parameter_input']:
step_id = step["label"] if step["label"] is not None else str(step["id"]) # TODO: auto-label
# If there's no step label we use the step id as the gxformat2 step id,
# which then acts as the label. This does change workflows on a round-trip.
step_id = step["label"] if step["label"] is not None else str(step["id"])
input_dict = {}
tool_state = _tool_state(step)
input_dict['type'] = native_input_to_format2_type(step, tool_state)
Expand Down

0 comments on commit da3ed63

Please sign in to comment.