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

Handle step input mappings with no source #38

Merged
merged 2 commits into from
May 26, 2023

Conversation

simleo
Copy link
Collaborator

@simleo simleo commented May 25, 2023

This fixes the specific error reported in #33, but then the conversion of the sample RO bundle breaks again due to another error: AttributeError: 'list' object has no attribute 'rsplit'.

The problem fixed here is due to the fact that we were not dealing with steps whose input mapping might not have a source. In this case, it only has a valueFrom. In this case, we fix the code by skipping the mapping, since it's not a connection with another parameter but an arbitrary Javascript expression. Note that CWL Viewer does the same (the outname mapping is not represented):

graph

@simleo simleo merged commit 8ab22b7 into ResearchObject:main May 26, 2023
9 checks passed
@simleo simleo deleted the step_valuefrom branch May 26, 2023 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant