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

Merge branch 'losoto_structure' into 'master'

Add losoto structure

See merge request eosc/lofar-cwl!14

Former-commit-id: c387dde1 [formerly 878593e1]
Former-commit-id: 663660d3
Former-commit-id: 545086e6
parents 2d36e178 1443bffa
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,12 @@ losoto_reset:
script:
- cwl-runner --no-container steps/LoSoTo.Reset.cwl test_jobs/losoto_reset.json
losoto_structure:
stage: test_steps
allow_failure: true
script:
- cwl-runner --no-container steps/LoSoTo.Structure.cwl test_jobs/losoto_structure.json
losoto_smooth:
stage: test_steps
allow_failure: true
......
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_structure
$namespaces:
lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
doc: |
Find the structure function from phase solutions of core stations.
WEIGHT: compliant
requirements:
InlineJavascriptRequirement:
expressionLib:
- { $include: utils.js}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: $(get_losoto_config('STRUCTURE').join('\n'))
- entryname: $(inputs.input_h5parm.basename)
entry: $(inputs.input_h5parm)
writable: true
baseCommand: "losoto"
arguments:
- $(inputs.input_h5parm.basename)
- parset.config
hints:
DockerRequirement:
dockerPull: lofareosc/lofar-pipeline-ci:latest
inputs:
- id: input_h5parm
type: File
format: lofar:#H5Parm
- id: soltab
type: string
doc: "Solution table"
- id: doUnwrap
type: boolean?
- id: refAnt
type: string?
doc: Reference antenna, by default the first.
- id: plotName
type: string?
doc: Plot file name, by default no plot.
- id: ndiv
type: int?
outputs:
- id: output_h5parm
type: File
format: lofar:#H5Parm
outputBinding:
glob: $(inputs.input_h5parm.basename)
$schema:
- https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
{
"input_h5parm": {"class": "File", "path": "/data/example.h5", "format": "lofar:#H5Parm"},
"soltab": "sol000/phase000",
}
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