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
08ed6f10
Commit
08ed6f10
authored
5 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Add Flagextend
Former-commit-id:
ed15f74f
parent
fc854555
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.Flagextend.cwl
+71
-0
71 additions, 0 deletions
steps/LoSoTo.Flagextend.cwl
test_jobs/losoto_flagextend.json
+6
-0
6 additions, 0 deletions
test_jobs/losoto_flagextend.json
with
82 additions
and
0 deletions
.gitlab-ci.yml
+
5
−
0
View file @
08ed6f10
...
...
@@ -114,6 +114,11 @@ losoto_clip:
allow_failure
:
true
script
:
-
cwl-runner --no-container steps/LoSoTo.Clip.cwl test_jobs/losoto_clip.json
losoto_flagextend
:
stage
:
test_steps
allow_failure
:
true
script
:
-
cwl-runner --no-container steps/LoSoTo.Flagextend.cwl test_jobs/losoto_flagextend.json
losoto_faraday
:
stage
:
test_steps
...
...
This diff is collapsed.
Click to expand it.
steps/LoSoTo.Flagextend.cwl
0 → 100644
+
71
−
0
View file @
08ed6f10
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_flagextend
$namespaces:
lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
doc: |
This operation for LoSoTo implement a extend flag procedure.
It can work in multi dimensional space and for each datum check if the
surrounding data are flagged to a certain %, then flag also that datum.
The size of the surrounding footprint can be tuned
requirements:
InlineJavascriptRequirement:
expressionLib:
- { $include: utils.js}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: $(get_losoto_config('FLAGEXTEND').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: axesToExt
type: string[]
doc: Axes used to find close flags.
- id: size
type: int[]
doc: |
Size of the window (diameter), per axis. If 0 is given then the entire
length of the axis is assumed.
Must be a vector of same length of Axes.
- id: percent
type: float?
doc: Percent of flagged data around the point to flag it, by default 50.
- id: maxCycles
type: int?
doc: Number of independent cycles of flag expansion, by default 3.
- id: ncpu
type: int?
doc: Number of CPU used, by default all available.
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_flagextend.json
0 → 100644
+
6
−
0
View file @
08ed6f10
{
"input_h5parm"
:
{
"class"
:
"File"
,
"path"
:
"/data/example.h5"
,
"format"
:
"lofar:#H5Parm"
},
"soltab"
:
"sol000/phase000"
,
"axesToExt"
:
[
"time"
],
"size"
:
[
0
]
}
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