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 4e5d223
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
16 changes: 2 additions & 14 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 Expand Up @@ -715,7 +703,7 @@ $graph:
jsonldPredicate:
_id: "cwl:loop"
mapSubject: id
mapPredicate: source
mapPredicate: outputSource
- name: outputMethod
doc: |
Required if `loop` is defined.
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 4e5d223

Please sign in to comment.