Skip to content

Commit 38172f9

Browse files
Moved loop_source and loop_when to camel case
1 parent 9ed0cd7 commit 38172f9

13 files changed

+21
-21
lines changed

cwltool/extensions-v1.2.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ $graph:
127127
type: string?
128128
jsonldPredicate: "@id"
129129
doc: "It must reference the `id` of one of the elements in the `in` field of the step."
130-
loop_source:
130+
loopSource:
131131
doc: |
132132
Specifies one or more of the step output parameters that will
133133
provide input to the loop iterations after the first one (inputs
@@ -193,9 +193,9 @@ $graph:
193193
Valid only under `requirements` of a https://www.commonwl.org/v1.2/Workflow.html#WorkflowStep.
194194
Unlike other CWL requirements, Loop requirement is not propagated to inner steps.
195195
196-
`loop_when` is an expansion of the CWL v1.2 `when` construct which controls
196+
`loopWhen` is an expansion of the CWL v1.2 `when` construct which controls
197197
conditional execution and thus when using `Loop` do not also specify a `when` as
198-
the `loop_when` expanded definition is intended to replace `when` in a
198+
the `loopWhen` expanded definition is intended to replace `when` in a
199199
future version of the CWL standards.
200200
201201
Loops are evaluated after any specified `scatter`ing; the implicit gathering
@@ -207,7 +207,7 @@ $graph:
207207
jsonldPredicate:
208208
_id: "@type"
209209
_type: "@vocab"
210-
loop_when:
210+
loopWhen:
211211
type: cwl:Expression
212212
doc: |
213213
Only run the step while the expression evaluates to `true`.
@@ -223,7 +223,7 @@ $graph:
223223
jsonldPredicate:
224224
_id: "cwltool:loop"
225225
mapSubject: id
226-
mapPredicate: loop_source
226+
mapPredicate: loopSource
227227
doc: |
228228
Defines the input parameters of the loop iterations after the first one
229229
(inputs of the first iteration are the step input parameters). If no

tests/loop/all-output-loop.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ steps:
2626
out: [o1]
2727
requirements:
2828
cwltool:Loop:
29-
loop_when: $(inputs.i1 < 10)
29+
loopWhen: $(inputs.i1 < 10)
3030
loop:
3131
i1: o1
3232
outputMethod: all

tests/loop/default-value-loop.cwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ steps:
4343
out: [ o1 ]
4444
requirements:
4545
cwltool:Loop:
46-
loop_when: $(inputs.i1 < 20)
46+
loopWhen: $(inputs.i1 < 20)
4747
loop:
4848
i1:
49-
loop_source: o1
49+
loopSource: o1
5050
default: 5
5151
outputMethod: all

tests/loop/invalid-loop-scatter.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ steps:
2727
${return {'o1': inputs.i1 + inputs.i2};}
2828
requirements:
2929
cwltool:Loop:
30-
loop_when: $(inputs.i1 < 10)
30+
loopWhen: $(inputs.i1 < 10)
3131
loop:
3232
i1: o1
3333
outputMethod: last

tests/loop/invalid-loop-when.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ steps:
2727
${return {'o1': inputs.i1 + inputs.i2};}
2828
requirements:
2929
cwltool:Loop:
30-
loop_when: $(inputs.i1 < 10)
30+
loopWhen: $(inputs.i1 < 10)
3131
loop:
3232
i1: o1
3333
outputMethod: last

tests/loop/loop-inside-loop-all.cwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ steps:
4646
out: [o1]
4747
requirements:
4848
cwltool:Loop:
49-
loop_when: $(inputs.i1 <= inputs.i2)
49+
loopWhen: $(inputs.i1 <= inputs.i2)
5050
loop:
5151
i1: o1
5252
outputMethod: all
@@ -56,7 +56,7 @@ steps:
5656
out: [o1]
5757
requirements:
5858
cwltool:Loop:
59-
loop_when: $(inputs.i2 < 4)
59+
loopWhen: $(inputs.i2 < 4)
6060
loop:
6161
i2:
6262
valueFrom: $(inputs.i2 + 1)

tests/loop/loop-inside-loop.cwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ steps:
4242
out: [o1]
4343
requirements:
4444
cwltool:Loop:
45-
loop_when: $(inputs.i1 <= inputs.i2)
45+
loopWhen: $(inputs.i1 <= inputs.i2)
4646
loop:
4747
i1: o1
4848
outputMethod: last
@@ -52,7 +52,7 @@ steps:
5252
out: [o1]
5353
requirements:
5454
cwltool:Loop:
55-
loop_when: $(inputs.i2 < 4)
55+
loopWhen: $(inputs.i2 < 4)
5656
loop:
5757
i2:
5858
valueFrom: $(inputs.i2 + 1)

tests/loop/loop-inside-scatter.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ steps:
4242
out: [o1]
4343
requirements:
4444
cwltool:Loop:
45-
loop_when: $(inputs.i1 < 10)
45+
loopWhen: $(inputs.i1 < 10)
4646
loop:
4747
i1: o1
4848
outputMethod: last

tests/loop/multi-source-loop.cwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ steps:
6060
out: [osmall, obig]
6161
requirements:
6262
cwltool:Loop:
63-
loop_when: $(inputs.i1 < 20)
63+
loopWhen: $(inputs.i1 < 20)
6464
loop:
6565
i1:
66-
loop_source: [osmall, obig]
66+
loopSource: [osmall, obig]
6767
pickValue: the_only_non_null
6868
outputMethod: all

tests/loop/single-var-loop.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ steps:
2727
out: [o1]
2828
requirements:
2929
cwltool:Loop:
30-
loop_when: $(inputs.i1 < 10)
30+
loopWhen: $(inputs.i1 < 10)
3131
loop:
3232
i1: o1
3333
outputMethod: last

0 commit comments

Comments
 (0)