Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LINC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
LINC
Commits
15d14e94
Commit
15d14e94
authored
5 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Add losoto polalign
Former-commit-id:
46e4fc97
parent
9aacf51b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+8
-0
8 additions, 0 deletions
.gitlab-ci.yml
steps/LoSoTo.Polalign.cwl
+92
-0
92 additions, 0 deletions
steps/LoSoTo.Polalign.cwl
test_jobs/losoto_polaling.json
+9
-0
9 additions, 0 deletions
test_jobs/losoto_polaling.json
with
109 additions
and
0 deletions
.gitlab-ci.yml
+
8
−
0
View file @
15d14e94
...
@@ -105,6 +105,13 @@ losoto_residual:
...
@@ -105,6 +105,13 @@ losoto_residual:
script
:
script
:
-
cwl-runner --no-container steps/LoSoTo.Residual.cwl test_jobs/losoto_residual.json
-
cwl-runner --no-container steps/LoSoTo.Residual.cwl test_jobs/losoto_residual.json
losoto_polalign
:
stage
:
test_steps
allow_failure
:
true
script
:
-
cwl-runner --no-container steps/LoSoTo.Polalign.cwl test_jobs/losoto_polalign.json
parset_selector
:
parset_selector
:
stage
:
test_steps
stage
:
test_steps
allow_failure
:
true
allow_failure
:
true
...
@@ -116,6 +123,7 @@ file_selector:
...
@@ -116,6 +123,7 @@ file_selector:
allow_failure
:
true
allow_failure
:
true
script
:
script
:
-
cwl-runner steps/FileSelector.cwl test_jobs/file_selector.json
-
cwl-runner steps/FileSelector.cwl test_jobs/file_selector.json
NDPPP
:
NDPPP
:
stage
:
test_steps
stage
:
test_steps
...
...
This diff is collapsed.
Click to expand it.
steps/LoSoTo.Polalign.cwl
0 → 100755
+
92
−
0
View file @
15d14e94
class: CommandLineTool
cwlVersion: v1.0
id: losoto_polalign
$namespaces:
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: |
Estimate polarization misalignment as delay
requirements:
InlineJavascriptRequirement:
expressionLib:
- |
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:
listing:
- entryname: 'parset.config'
entry: $(get_config().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: soltabout
default: phasediff
type: string?
doc: output table name (same solset)
- id: maxResidual
type: float?
default: 1
doc: Maximum acceptable rms of the residuals in radians before flagging. Set to zero to avoid the check.
- id: fitOffset
type: boolean?
default: false
doc: Assume that together with a delay each station has also a differential phase offset (important for old LBA observations).
- id: average
type: boolean?
default: false
doc: Mean-average in time the resulting delays/offset.
- id: replace
type: boolean?
default: false
doc: replace using smoothed value instead of flag bad data? Smooth must be active.
- id: refAnt
type: string?
doc: Reference antenna, if not set use the first one.
outputs:
- id: output_h5parm
type: File
format: lofar:#H5Parm
outputBinding:
glob: $(inputs.input_h5parm.basename)
This diff is collapsed.
Click to expand it.
test_jobs/losoto_polaling.json
0 → 100644
+
9
−
0
View file @
15d14e94
{
"input_h5parm"
:
{
"class"
:
"File"
,
"path"
:
"/data/example.h5"
,
"format"
:
"lofar:#H5Parm"
},
"soltab"
:
"sol000/amplitude000"
,
"average"
:
true
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment