Skip to content

Commit

Permalink
Make LoopInput extend OutputSink
Browse files Browse the repository at this point in the history
  • Loading branch information
GlassOfWhiskey committed Jan 3, 2023
1 parent 240a33b commit c31c3ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
14 changes: 1 addition & 13 deletions Workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -447,20 +447,8 @@ $graph:
- name: LoopInput
type: record
extends: [Identified, Sink]
extends: [Identified, OutputSink]
fields:
- name: source
doc: |
Specifies one or more of the step output parameters that will
provide input to the loop iterations after the first one (inputs
of the first iteration are the step input parameters).
jsonldPredicate:
"_id": "cwl:source"
"_type": "@id"
refScope: 1
type:
- string?
- string[]?
- name: default
type: ["null", File, Directory, Any]
doc: |
Expand Down
2 changes: 1 addition & 1 deletion tests/loop/default-value-loop.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ steps:
when: $(inputs.i1 < 20)
loop:
i1:
source: o1
outputSource: o1
default: 5
outputMethod: all
run:
Expand Down
2 changes: 1 addition & 1 deletion tests/loop/invalid-multi-source-loop-no-requirement.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
when: $(inputs.i1 < 20)
loop:
i1:
source: [ osmall, obig ]
outputSource: [ osmall, obig ]
pickValue: the_only_non_null
outputMethod: all
run:
Expand Down
2 changes: 1 addition & 1 deletion tests/loop/multi-source-loop.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ steps:
when: $(inputs.i1 < 20)
loop:
i1:
source: [ osmall, obig ]
outputSource: [ osmall, obig ]
pickValue: the_only_non_null
outputMethod: all
run:
Expand Down

0 comments on commit c31c3ff

Please sign in to comment.