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

Add LoSoTo reset

parent b6396191
No related branches found
No related tags found
2 merge requests!69Change the name of the pre-calibrated output MS,!10Add LoSoTo reset step
Pipeline #249 canceled
......@@ -59,6 +59,12 @@ losoto_norm:
script:
- cwl-runner --no-container steps/LoSoTo.Norm.cwl test_jobs/losoto_norm.json
losoto_reset:
stage: test_steps
allow_failure: true
script:
- cwl-runner --no-container steps/LoSoTo.Reset.cwl test_jobs/losoto_reset.json
parset_selector:
stage: test_steps
......
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_reset
doc: Subtract/divide two tables or a clock/tec/tec3rd/rm from a phase.
requirements:
InlineJavascriptRequirement: {}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: |
[reset]
soltab = $(inputs.soltab)
operation = RESET
$(inputs.dataVal !== null? 'dataVal=' + inputs.dataVal: '')
- 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: dataVal
type: float?
doc: |
If given set values to this number, otherwise uses 1 for amplitude and 0
for all other soltab types.
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.
Please register or to comment