Skip to content

Commit

Permalink
naming in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
r-i-v-a committed Mar 20, 2024
1 parent 8916255 commit 870b5af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions _scratchpad_/scatter_collect_with_glob.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ task scatter_task {
}
command <<<
for i in {0..99}; do
echo ~{input_string} > result_~{index}_${i}.txt
echo ~{input_string} > glob_result_~{index}_${i}.txt
done
>>>
output {
Array[File] out = glob("result_*")
Array[File] out = glob("glob_result_*")
}
}
6 changes: 3 additions & 3 deletions _scratchpad_/scatter_collect_with_struct.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ struct OutputStruct {
File fileField
}

workflow scatter_collect_no_glob {
workflow scatter_collect_with_struct {
input {
String input_string
Int n = 3
Expand All @@ -24,11 +24,11 @@ task scatter_task {
Int index
}
command <<<
echo ~{input_string} > no_glob_result_~{index}.txt
echo ~{input_string} > struct_result_~{index}.txt
>>>
output {
OutputStruct out = OutputStruct {
fileField: "no_glob_result_~{index}.txt"
fileField: "struct_result_~{index}.txt"
}
}
}

0 comments on commit 870b5af

Please sign in to comment.