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

Merge branch 'losoto_norm' into 'master'

Add LoSoTo Norm step

See merge request eosc/prefactor3-cwl!7
parents a4dd6750 9b29db3b
Branches
No related tags found
No related merge requests found
......@@ -46,12 +46,20 @@ losoto_abs:
allow_failure: true
script:
- cwl-runner --no-container steps/LoSoTo.Abs.cwl test_jobs/losoto_abs.json
losoto_plot:
stage: test_steps
allow_failure: true
script:
- cwl-runner --no-container steps/LoSoTo.Plot.cwl test_jobs/losoto_plot.json
losoto_norm:
stage: test_steps
allow_failure: true
script:
- cwl-runner --no-container steps/LoSoTo.Norm.cwl test_jobs/losoto_norm.json
parset_selector:
stage: test_steps
allow_failure: true
......
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_abs
doc: |
Normalize the solutions to a given value WEIGHT: Weights compliant
requirements:
InlineJavascriptRequirement: {}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: |
[norm]
soltab = $(inputs.soltab)
operation = NORM
axesToNorm = $(inputs.axesToNorm)
$(inputs.normVal !== null? 'normVal=' + inputs.normVal: '')
- 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: axesToNorm
type: string[]
doc: Axes along which compute the normalization
- id: normVal
type: float?
doc: Number to normalize to vals = vals * (normVal/valsMean), by default 1.
outputs:
- id: output_h5parm
type: File
outputBinding:
glob: $(inputs.input_h5parm.basename)
{
"input_h5parm": {
"class": "File",
"path": "/data/example.h5"
},
"soltab": "sol000/amplitude000",
"axesToNorm": ["time"]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment