Skip to content
Snippets Groups Projects
Commit 82681dfc authored by alex's avatar alex
Browse files

fix toil bug #30

parent bf229eb8
No related branches found
No related tags found
1 merge request!158fix toil bug #30
Pipeline #57356 passed
...@@ -6,6 +6,8 @@ id: losoto_faraday ...@@ -6,6 +6,8 @@ id: losoto_faraday
$namespaces: $namespaces:
lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
$schema:
- https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
doc: | doc: |
Faraday rotation extraction from either a rotation table or a Faraday rotation extraction from either a rotation table or a
circular phase (of which the operation get the polarisation difference). circular phase (of which the operation get the polarisation difference).
...@@ -69,5 +71,3 @@ outputs: ...@@ -69,5 +71,3 @@ outputs:
stdout: $(inputs.input_h5parm.basename)-losoto.log stdout: $(inputs.input_h5parm.basename)-losoto.log
stderr: $(inputs.input_h5parm.basename)-losoto_err.log stderr: $(inputs.input_h5parm.basename)-losoto_err.log
$schema:
- https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
...@@ -14,32 +14,16 @@ doc: | ...@@ -14,32 +14,16 @@ doc: |
requirements: requirements:
InlineJavascriptRequirement: InlineJavascriptRequirement:
expressionLib: expressionLib:
- | - { $include: utils.js}
function get_config() {
var par = ['soltab = ' + inputs.soltab]
if (inputs.ncpu !== null) par.push('ncpu='+inputs.ncpu);
par.push('[polalign]')
par.push('operation = POLALIGN')
for(var field_name in inputs){
if(field_name === 'input_h5parm' ||
field_name === 'soltab' ||
field_name === 'ncpu') continue;
if(inputs[field_name] === null ||
inputs[field_name] === 'null') continue;
par.push(field_name+'='+inputs[field_name])
}
return par
}
InitialWorkDirRequirement: InitialWorkDirRequirement:
listing: listing:
- entryname: 'parset.config' - entryname: 'parset.config'
entry: $(get_config().join('\n')) entry: $(get_losoto_config('POLALIGN').join('\n'))
- entryname: $(inputs.input_h5parm.basename) - entryname: $(inputs.input_h5parm.basename)
entry: $(inputs.input_h5parm) entry: $(inputs.input_h5parm)
writable: true writable: true
baseCommand: "losoto" baseCommand: "losoto"
arguments: arguments:
......
...@@ -63,10 +63,11 @@ steps: ...@@ -63,10 +63,11 @@ steps:
- id: faraday_rot - id: faraday_rot
in: in:
- id: refAnt - id: refAnt
default: CS001HBA0
source: refant source: refant
- id: input_h5parm - id: input_h5parm
source: h5parm source: h5parm
- id: soltabout
default: faraday
out: out:
- id: output_h5parm - id: output_h5parm
- id: logfiles - id: logfiles
......
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