Closed roksys closed 5 years ago
r = u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#gendata.log'
nodes.keys()
[
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/gendata_tool',
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/gendata.log',
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/fitdata.log',
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/gendata/data',
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/fitdata/result',
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/plot',
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/gendata/gendata.log',
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/fitdata',
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/fitdata/fitdata.log',
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/events',
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/fitdata_tool',
u'file:///Users/rokas/reana-demo-root6-roofit/cwl-local-run/workflow.json#main/gendata'
]
Just want to add that workflow in $graph
format is generated by running
$ cwltool --pack ../workflow/cwl/workflow.cwl
urljoin can't handle two url fragments #main
and #gendata.log
and main
gets removed, which cause KeyError in get_subgraph()
@roksys Good find! I suggest writing code to:
"#"+r
append "/"+r
Hi @mr-c,
I think appending "/"+r
instead of "#"+r
will only work with workflows in $graph format, but not with ones in yaml.
@roksys I agree (though the $graph
format is also available in YAML, just not often seen that way)
This is what I mean by
- detect this situation
Is to see if this is a $graph
based document
Hi,
I was working on integrating cwltool to REANA and faced a problem when passing
--target
with workflow schema in json format.workflow.json
inputs.json
Reproducing error
It works fine with with workflow in cwl.
Example code - https://github.com/reanahub/reana-demo-root6-roofit