Skip to content
Snippets Groups Projects
Commit e98ca4e4 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Add LoSoTo Duplicate step

parent a205c384
No related branches found
No related tags found
2 merge requests!69Change the name of the pre-calibrated output MS,!15Add LoSoTo Duplicate step
Pipeline #325 failed
...@@ -68,6 +68,12 @@ losoto_abs: ...@@ -68,6 +68,12 @@ losoto_abs:
script: script:
- cwl-runner --no-container steps/LoSoTo.Abs.cwl test_jobs/losoto_abs.json - cwl-runner --no-container steps/LoSoTo.Abs.cwl test_jobs/losoto_abs.json
losoto_duplicate:
stage: test_steps
allow_failure: true
scripts:
- cwl-runner --no-container steps/LoSoTo.Duplicate.cwl test_jobs/losoto_duplicate.json
losoto_plot: losoto_plot:
stage: test_steps stage: test_steps
allow_failure: true allow_failure: true
......
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_duplicate
doc: |
Duplicate a table
requirements:
InlineJavascriptRequirement: {}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: |
[duplicate]
soltab = $(inputs.soltab)
operation = DUPLICATE
$(inputs.soltabOut !== null? 'soltabOut=' + inputs.soltabOut: '')
- entryname: $(inputs.input_h5parm.basename)
entry: $(inputs.input_h5parm)
writable: true
baseCommand: "losoto"
arguments:
- $(inputs.input_h5parm.basename)
- parset.config
hints:
DockerRequirement:
dockerPull: lofareosc/prefactor-ci:master
inputs:
- id: input_h5parm
type: File
- id: soltab
type: string
doc: "Solution table"
- id: soltabOut
type: string?
doc: Output table name. By default choose next available from table type.
outputs:
- id: output_h5parm
type: File
outputBinding:
glob: $(inputs.input_h5parm.basename)
{
"input_h5parm": {
"class": "File",
"path": "/data/example.h5"
},
"soltab": "sol000/amplitude000"
}
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