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

Add LoSoTo.Plot

parent b2f9cfb0
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,11 @@ losoto_abs: ...@@ -46,6 +46,11 @@ losoto_abs:
allow_failure: true allow_failure: true
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_plot:
stage: test_steps
allow_failure: true
script:
- cwl-runner --no-container steps/LoSoTo.Plot.cwl test_jobs/losoto_plot.json
parset_selector: parset_selector:
stage: test_steps stage: test_steps
......
...@@ -14,11 +14,13 @@ requirements: ...@@ -14,11 +14,13 @@ requirements:
- | - |
function get_config() { function get_config() {
var par = ['soltab = ' + inputs.soltab] var par = ['soltab = ' + inputs.soltab]
if (inputs.ncpu !== null) par.push('ncpu='+inputs.ncpu);
par.push('[plot]') par.push('[plot]')
par.push('operation = PLOT') par.push('operation = PLOT')
for(var field_name in inputs){ for(var field_name in inputs){
if(field_name === 'input_file' || if(field_name === 'input_h5parm' ||
field_name === 'soltab') continue; field_name === 'soltab' ||
field_name === 'ncpu') continue;
if(inputs[field_name] === null || if(inputs[field_name] === null ||
inputs[field_name] === 'null') continue; inputs[field_name] === 'null') continue;
par.push(field_name+'='+inputs[field_name]) par.push(field_name+'='+inputs[field_name])
...@@ -29,12 +31,15 @@ requirements: ...@@ -29,12 +31,15 @@ requirements:
listing: listing:
- entryname: 'parset.config' - entryname: 'parset.config'
entry: $(get_config().join('\n')) entry: $(get_config().join('\n'))
- entryname: $(inputs.input_h5parm.basename)
entry: $(inputs.input_h5parm)
writable: true
baseCommand: "losoto" baseCommand: "losoto"
arguments: arguments:
- $(inputs.input_file) - $(inputs.input_h5parm.basename)
- parset.config - parset.config
hints: hints:
...@@ -42,7 +47,7 @@ hints: ...@@ -42,7 +47,7 @@ hints:
dockerPull: lofareosc/prefactor-ci:master dockerPull: lofareosc/prefactor-ci:master
inputs: inputs:
- id: input_file - id: input_h5parm
type: File type: File
- id: soltab - id: soltab
type: string[] type: string[]
...@@ -69,7 +74,6 @@ inputs: ...@@ -69,7 +74,6 @@ inputs:
- e.g. ‘pol’ to plot XX-YY. - e.g. ‘pol’ to plot XX-YY.
- id: NColFig - id: NColFig
type: int? type: int?
type: string
doc: | doc: |
Number of columns in a multi-table image. By default is automatically Number of columns in a multi-table image. By default is automatically
chosen. chosen.
...@@ -132,4 +136,6 @@ inputs: ...@@ -132,4 +136,6 @@ inputs:
outputs: outputs:
- id: output_plots - id: output_plots
type: Any[] type: File[]
outputBinding:
glob: "$(inputs.prefix)*.png"
{
"input_h5parm": {"class": "File", "path": "/data/example.h5"},
"soltab": ["sol000/phase000"],
"axesInPlot": ["time"],
"ncpu": 1
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment