Skip to content
Snippets Groups Projects
Commit 05c75d3e authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Give inline scripts sensible names

Some of the inline scripts (bash or python) have names like "script.py",
which is not very helpful for debugging. Renamed the scripts for those
workflows that contained either script.py or script.sh.
parent d3d58418
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ $namespaces: ...@@ -5,7 +5,7 @@ $namespaces:
id: ms_concat id: ms_concat
baseCommand: baseCommand:
- /bin/bash - /bin/bash
- script.sh - ms_concat.sh
inputs: inputs:
- default: 50 - default: 50
id: min_length id: min_length
...@@ -59,7 +59,7 @@ requirements: ...@@ -59,7 +59,7 @@ requirements:
listing: listing:
- entry: $(inputs.msin) - entry: $(inputs.msin)
writable: true writable: true
- entryname: script.sh - entryname: ms_concat.sh
entry: | entry: |
#!/bin/bash #!/bin/bash
directories=\$(ls -d out_*) directories=\$(ls -d out_*)
...@@ -71,4 +71,4 @@ requirements: ...@@ -71,4 +71,4 @@ requirements:
inplaceUpdate: true inplaceUpdate: true
- class: InlineJavascriptRequirement - class: InlineJavascriptRequirement
stdout: ms_concat.log stdout: ms_concat.log
stderr: ms_concat_err.log stderr: ms_concat_err.log
\ No newline at end of file
...@@ -11,7 +11,7 @@ hints: ...@@ -11,7 +11,7 @@ hints:
baseCommand: baseCommand:
# - aoflagger # - aoflagger
- /bin/bash - /bin/bash
- script.sh - aoflag.sh
inputs: inputs:
- id: msin - id: msin
type: Directory[] type: Directory[]
...@@ -132,7 +132,7 @@ requirements: ...@@ -132,7 +132,7 @@ requirements:
writable: true writable: true
- entry: $(inputs.concat_additional_ms) - entry: $(inputs.concat_additional_ms)
writable: true writable: true
- entryname: script.sh - entryname: aoflag.sh
entry: | entry: |
#!/bin/bash #!/bin/bash
directories=\$(ls -d out*) directories=\$(ls -d out*)
......
...@@ -5,7 +5,7 @@ $namespaces: ...@@ -5,7 +5,7 @@ $namespaces:
id: compare_station_list id: compare_station_list
baseCommand: baseCommand:
- python3 - python3
- script.py - compare_station_list.py
inputs: inputs:
- id: msin - id: msin
type: Directory[] type: Directory[]
...@@ -27,7 +27,7 @@ requirements: ...@@ -27,7 +27,7 @@ requirements:
- class: InlineJavascriptRequirement - class: InlineJavascriptRequirement
- class: InitialWorkDirRequirement - class: InitialWorkDirRequirement
listing: listing:
- entryname: script.py - entryname: compare_station_list.py
entry: | entry: |
import sys import sys
import json import json
......
...@@ -18,12 +18,12 @@ outputs: ...@@ -18,12 +18,12 @@ outputs:
baseCommand: baseCommand:
- python3 - python3
- script.py - create_workflow_input.py
doc: '' doc: ''
requirements: requirements:
InitialWorkDirRequirement: InitialWorkDirRequirement:
listing: listing:
- entryname: script.py - entryname: create_workflow_input.py
entry: | entry: |
#!/usr/bin/env python3 #!/usr/bin/env python3
...@@ -39,4 +39,4 @@ requirements: ...@@ -39,4 +39,4 @@ requirements:
rendered_leafs.append(rendered_leaf) rendered_leafs.append(rendered_leaf)
with open('workflow_input.json', 'w') as fp: with open('workflow_input.json', 'w') as fp:
json.dump({'msin': rendered_leafs}, fp, indent=4) json.dump({'msin': rendered_leafs}, fp, indent=4)
\ No newline at end of file
...@@ -5,7 +5,7 @@ baseCommand: ...@@ -5,7 +5,7 @@ baseCommand:
- python3 - python3
arguments: arguments:
- position: 0 - position: 0
valueFrom: script.py valueFrom: filter_ms_group.py
inputs: inputs:
- id: group_id - id: group_id
type: string type: string
...@@ -36,7 +36,7 @@ requirements: ...@@ -36,7 +36,7 @@ requirements:
- class: InlineJavascriptRequirement - class: InlineJavascriptRequirement
- class: InitialWorkDirRequirement - class: InitialWorkDirRequirement
listing: listing:
- entryname: script.py - entryname: filter_ms_group.py
entry: | entry: |
import sys import sys
import json import json
......
...@@ -5,7 +5,7 @@ $namespaces: ...@@ -5,7 +5,7 @@ $namespaces:
id: findRefAnt_join id: findRefAnt_join
baseCommand: baseCommand:
- python3 - python3
- script.py - findRefAnt_join.py
inputs: inputs:
- id: flagged_fraction_dict - id: flagged_fraction_dict
type: string[]? type: string[]?
...@@ -44,7 +44,7 @@ requirements: ...@@ -44,7 +44,7 @@ requirements:
listing: listing:
- entryname: input.json - entryname: input.json
entry: $(inputs.flagged_fraction_dict) entry: $(inputs.flagged_fraction_dict)
- entryname: script.py - entryname: findRefAnt_join.py
entry: | entry: |
import sys import sys
import json import json
...@@ -105,4 +105,4 @@ requirements: ...@@ -105,4 +105,4 @@ requirements:
json.dump(flagged_fraction_antenna, fp) json.dump(flagged_fraction_antenna, fp)
stdout: findRefAnt.log stdout: findRefAnt.log
stderr: findRefAnt_err.log stderr: findRefAnt_err.log
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment