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
9bcd1f98
Commit
9bcd1f98
authored
5 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Add Interpolate step
Former-commit-id:
c5d6ae5c
Former-commit-id:
abd855d6
parent
e2437082
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
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
steps/LoSoTo.Interpolate.cwl
+82
-0
82 additions, 0 deletions
steps/LoSoTo.Interpolate.cwl
test_jobs/losoto_interpolate.json
+7
-0
7 additions, 0 deletions
test_jobs/losoto_interpolate.json
with
94 additions
and
0 deletions
.gitlab-ci.yml
+
5
−
0
View file @
9bcd1f98
...
...
@@ -130,6 +130,11 @@ losoto_faraday:
script
:
-
cwl-runner --no-container steps/LoSoTo.Faraday.cwl test_jobs/losoto_faraday.json
losoto_interpolate
:
stage
:
test_steps
allow_failure
:
true
script
:
-
cwl-runner --no-container steps/LoSoTo.Interpolate.cwl test_jobs/losoto_interpolate.json
losoto_residual
:
stage
:
test_steps
allow_failure
:
true
...
...
This diff is collapsed.
Click to expand it.
steps/LoSoTo.Interpolate.cwl
0 → 100644
+
82
−
0
View file @
9bcd1f98
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_interpolate
$namespaces:
lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
doc: |
This operation for LoSoTo implements regridding and linear interpolation of data for an axis.
WEIGHT: compliant
requirements:
InlineJavascriptRequirement:
expressionLib:
- { $include: utils.js}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: $(get_losoto_config('INTERPOLATE').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: axisToRegrid
type: string
doc: Name of the axis for which regridding/interpolation will be done
- id: outSoltab
type: string
doc: Output sol tab name
- id: newdelta
type: string
doc: Fundamental width between samples after regridding. E.g., "100kHz" or "10s"
- id: delta
type: string?
doc: |
Fundamental width between samples in axisToRegrid. E.g., "100kHz" or "10s". If "",
it is calculated from the axisToRegrid values
- id: maxFlaggedWidth
type: int?
doc: |
Maximum allowable width in number of samples (after regridding) above which
interpolated values are flagged (e.g., maxFlaggedWidth = 5 would allow gaps of
5 samples or less to be interpolated across but gaps of 6 or more would be
flagged)
- id: log
type: boolean?
doc: Interpolation is done in log10 space, by default False
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
This diff is collapsed.
Click to expand it.
test_jobs/losoto_interpolate.json
0 → 100644
+
7
−
0
View file @
9bcd1f98
{
"input_h5parm"
:
{
"class"
:
"File"
,
"path"
:
"/data/example.h5"
,
"format"
:
"lofar:#H5Parm"
},
"soltab"
:
"sol000/phase000"
,
"axisToRegrid"
:
"time"
,
"newdelta"
:
"1s"
,
"outSoltab"
:
"timeout"
}
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