Skip to content
GitLab
Explore
Sign in
Register
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
5ba69864
Commit
5ba69864
authored
5 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Add applycal step
Former-commit-id:
cc951935
Former-commit-id:
9a84e14a
parent
3b7dd5ea
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+6
-0
6 additions, 0 deletions
.gitlab-ci.yml
steps/DP3.ApplyCalStepGenerator.cwl
+128
-0
128 additions, 0 deletions
steps/DP3.ApplyCalStepGenerator.cwl
test_jobs/applycal_step_generator.json
+9
-0
9 additions, 0 deletions
test_jobs/applycal_step_generator.json
with
143 additions
and
0 deletions
.gitlab-ci.yml
+
6
−
0
View file @
5ba69864
...
@@ -51,6 +51,12 @@ average_step_generator:
...
@@ -51,6 +51,12 @@ average_step_generator:
-
cwl-runner steps/DP3.AveragerStepGenerator.cwl test_jobs/averager_step_generator.json
-
cwl-runner steps/DP3.AveragerStepGenerator.cwl test_jobs/averager_step_generator.json
-
!
cwl-runner steps/DP3.AveragerStepGenerator.cwl test_jobs/averager_step_generator_error.json
-
!
cwl-runner steps/DP3.AveragerStepGenerator.cwl test_jobs/averager_step_generator_error.json
applycal_step_generator
:
stage
:
test_steps
allow_failure
:
true
script
:
-
cwl-runner steps/DP3.ApplyCalStepGenerator.cwl test_jobs/applycal_step_generator.json
aoflagger_step_generator
:
aoflagger_step_generator
:
stage
:
test_steps
stage
:
test_steps
allow_failure
:
true
allow_failure
:
true
...
...
This diff is collapsed.
Click to expand it.
steps/DP3.ApplyCalStepGenerator.cwl
0 → 100755
+
128
−
0
View file @
5ba69864
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.0
id: applycal_step_generator
inputs:
- id: steps
type: Any[]?
default: []
- id: step_name
type: string
doc: unique name for the step
default: applycal
- id: parmdb
type: string
doc: Path of parmdb in which the parameters are stored. This can also be an H5Parm file, in that case the filename has to end in '.h5'
- id: solset
type: string?
doc: |
In case of applying an H5Parm file: the name of the solset to be used.
If empty, defaults to the name of one solset present in the H5Parm
(if more solsets are present in an H5Parm and solset is left empty,
an error will be thrown)
- id: correction
type:
type: enum
symbols:
- gain
- tec
- clock
- rotationangle
- rotation
- scalarphase
- scalaramplitude
- rotationmeasure
- fulljones
doc: |
Type of correction to perform, can be one of 'gain', 'tec', 'clock',
'(common)rotationangle' / 'rotation', '(common)scalarphase',
'(common)scalaramplitude' or 'rotationmeasure'
(create multiple ApplyCal steps for multiple corrections).
When using H5Parm,
this is for now the name of the soltab;
the type will be deduced from the metadata in that soltab,
except for full Jones, in which case correction should be 'fulljones'.
- id: soltab
type: string[]?
doc: |
The name or names of the H5 soltab.
Currently only used when correction=fulljones,
in which case soltab should list two names (amplitude and phase soltab).
- id: direction
type: string?
doc: If using H5Parm, the direction of the solution to use
- id: updateweights
type: boolean?
doc: |
Update the weights column, in a way consistent with
the weights being inverse proportional to the autocorrelations
(e.g. if 'autoweights' was used before).
- id: interpolation
default: nearest
type:
type: enum
symbols:
- nearest
- linear
doc: If using H5Parm, the type of interpolation (in time and frequency) to use, can be one of 'nearest' or 'linear'.
- id: invert
type: boolean?
doc: |
Invert the corrections, to correct the data. Default is true.
If you want to corrupt the data, set it to 'false'
- id: timeslotsperparmupdate
type: int?
doc: |
Number of time slots to handle after one read of the parameter file.
Optimization to prevent spurious reading from the parmdb.
outputs:
- id: augmented_steps
outputSource:
- DP3_GenericStep/augmented_steps
type: Any[]
steps:
- id: DP3_GenericStep
in:
- id: step_type
default: 'applycal'
- id: output_files
default: ["parmdb"]
- id: step_id
source: step_name
- id: steps
source: steps
- id: parameters
valueFrom: $(inputs)
- id: parmdb
source: parmdb
- id: solset
source: solset
- id: correction
source: correction
- id: soltab
source: soltab
- id: direction
source: direction
- id: updateweights
source: updateweights
- id: interpolation
source: interpolation
- id: invert
source: invert
- id: timeslotsperparmupdate
source: timeslotsperparmupdate
#-------------------------------
out:
- augmented_steps
run: ../steps/DP3.GenericStep.cwl
requirements:
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement
- class: MultipleInputFeatureRequirement
This diff is collapsed.
Click to expand it.
test_jobs/applycal_step_generator.json
0 → 100644
+
9
−
0
View file @
5ba69864
{
"input_parset"
:
[{
"step_type"
:
"name"
,
"step_id"
:
"id"
,
"parameters"
:
[]
}],
"parmdb"
:
"out.h5"
,
"correction"
:
"gain"
}
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