Skip to content

Commit

Permalink
tweak 1 for fixing CWL
Browse files Browse the repository at this point in the history
  • Loading branch information
joezuntz committed Feb 3, 2022
1 parent f8ac10a commit 84e9a6d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ceci/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,9 @@ def initiate_run(self, overall_inputs):

# CWL treats overall inputs differently, storing
# them in the inputs file. We keep the
self.cwl_overall_inputs = overall_inputs.copy()
overall_inputs.clear()
self.cwl_overall_inputs['config'] = self.stages_config

return {
"workflow": wf,
Expand Down Expand Up @@ -1316,9 +1318,11 @@ def enqueue_job(self, stage, pipeline_files):
# so not he same as the pipeline_files we usually see
for inp in cwl_tool.inputs:

if (inp.id in self.cwl_overall_inputs):
name = inp.id
# If this input is an putput from an earlier stage
# then it takes its name based on that
if inp.id in pipeline_files:
elif inp.id in pipeline_files:
name = pipeline_files[inp.id] + "/" + inp.id
# otherwise if it's a config option we mangle
# it to avod clashes
Expand All @@ -1331,7 +1335,8 @@ def enqueue_job(self, stage, pipeline_files):
# If it's an overall input to the entire pipeline we
# record that. We only want things that aren't outputs
# (first clause) and that we haven't already recorded (second)
if (inp.id not in pipeline_files) and (
# breakpoint()
if (inp.id in self.cwl_overall_inputs) and (
name not in self.run_info["workflow_inputs"]
):
self.run_info["workflow_inputs"].add(name)
Expand Down

0 comments on commit 84e9a6d

Please sign in to comment.