From 864ffb4ae3c8a3926043a76effea634b0ebb028d Mon Sep 17 00:00:00 2001 From: mancini <mancini@astron.nl> Date: Wed, 15 Jan 2020 10:19:13 +0100 Subject: [PATCH] Add LoSoTo XY offset Former-commit-id: 239ee7356ecc82a693c9426cf75785a3b434f5be --- .gitlab-ci.yml | 7 ++++ steps/LoSoTo.PrefactorXYoffset.cwl | 53 +++++++++++++++++++++++++ test_jobs/losoto_prefactorxyoffset.json | 5 +++ 3 files changed, 65 insertions(+) create mode 100644 steps/LoSoTo.PrefactorXYoffset.cwl create mode 100644 test_jobs/losoto_prefactorxyoffset.json diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7c35c120..3a8d9d08 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -131,6 +131,13 @@ losoto_flagextend: allow_failure: true script: - cwl-runner --no-container steps/LoSoTo.Flagextend.cwl test_jobs/losoto_flagextend.json + +losoto_prefactor_xyoffset: + stage: test_steps + allow_failure: true + script: + - cwl-runner --no-container steps/LoSoTo.PrefactorXYoffset.cwl test_jobs/losoto_prefactorxyoffset.json + losoto_flagstation: stage: test_steps allow_failure: true diff --git a/steps/LoSoTo.PrefactorXYoffset.cwl b/steps/LoSoTo.PrefactorXYoffset.cwl new file mode 100644 index 00000000..49e072c3 --- /dev/null +++ b/steps/LoSoTo.PrefactorXYoffset.cwl @@ -0,0 +1,53 @@ +#!/usr/bin/env cwl-runner + +class: CommandLineTool +cwlVersion: v1.0 +id: losoto_prefactor_xyoffset + +$namespaces: + lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl + +requirements: + InlineJavascriptRequirement: + expressionLib: + - { $include: utils.js} + InitialWorkDirRequirement: + listing: + - entryname: 'parset.config' + entry: $(get_losoto_config('PREFACTOR_XYOFFSET').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: chanWidth + type: string + doc: | + the width of each channel in the data from which solutions were obtained. Can be + either a string like "48kHz" or a float in Hz. + +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 diff --git a/test_jobs/losoto_prefactorxyoffset.json b/test_jobs/losoto_prefactorxyoffset.json new file mode 100644 index 00000000..f98c786c --- /dev/null +++ b/test_jobs/losoto_prefactorxyoffset.json @@ -0,0 +1,5 @@ +{ + "input_h5parm": {"class": "File", "path": "/data/example.h5", "format": "lofar:#H5Parm"}, + "soltab": "sol000/phase000", + "chanWidth" : "48kHz" +} -- GitLab