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
274162b0
Commit
274162b0
authored
4 years ago
by
alex
Browse files
Options
Downloads
Patches
Plain Diff
add structure function
Former-commit-id:
635f6d0a
parent
b1d732ce
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
steps/structure_function.cwl
+62
-0
62 additions, 0 deletions
steps/structure_function.cwl
workflows/prefactor_target.cwl
+2
-0
2 additions, 0 deletions
workflows/prefactor_target.cwl
workflows/prefactor_target/finalize.cwl
+48
-3
48 additions, 3 deletions
workflows/prefactor_target/finalize.cwl
with
112 additions
and
3 deletions
steps/structure_function.cwl
0 → 100644
+
62
−
0
View file @
274162b0
class: CommandLineTool
cwlVersion: v1.0
$namespaces:
lofar: 'https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl'
sbg: 'https://www.sevenbridges.com/'
id: structure_function
baseCommand:
- python3
- /usr/local/bin/getStructure_from_phases.py
inputs:
- format: 'lofar:#H5Parm'
id: h5parmFile
type: File
inputBinding:
position: 0
doc: List of h5parm files
- default: 'target'
id: solset
type: string?
inputBinding:
position: 0
prefix: '--solset'
doc: Input solset name
- default: 'phase000'
id: soltab
type: string?
inputBinding:
position: 0
prefix: '--soltab'
doc: Name of the soltab
- default: 'POINTING'
id: outbasename
type: string?
inputBinding:
position: 0
prefix: '--outbasename'
doc: Namebase of the output files
outputs:
- id: structure_plot
doc: Output plot
type: File
outputBinding:
glob: $(inputs.outbasename+'_structure.png')
- id: structure_txt
doc: Output text
type: File
outputBinding:
glob: $(inputs.outbasename+'_structure.txt')
- id: log
type: File[]
outputBinding:
glob: 'structure_function*.log'
label: structure_function
requirements:
- class: InlineJavascriptRequirement
hints:
- class: DockerRequirement
dockerPull: lofareosc/prefactor:HBAcalibrator
stdout: structure_function.log
stderr: structure_function_err.log
$schema:
- 'https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl'
This diff is collapsed.
Click to expand it.
workflows/prefactor_target.cwl
+
2
−
0
View file @
274162b0
...
@@ -242,6 +242,7 @@ outputs:
...
@@ -242,6 +242,7 @@ outputs:
- id: inspection
- id: inspection
outputSource:
outputSource:
- prep/inspection
- prep/inspection
- finalize/inspection
type: 'File[]'
type: 'File[]'
linkMerge: merge_flattened
linkMerge: merge_flattened
'sbg:x': 2000
'sbg:x': 2000
...
@@ -404,6 +405,7 @@ steps:
...
@@ -404,6 +405,7 @@ steps:
out:
out:
- id: msout
- id: msout
- id: solutions
- id: solutions
- id: inspection
- id: logfiles
- id: logfiles
run: ./prefactor_target/finalize.cwl
run: ./prefactor_target/finalize.cwl
label: finalize
label: finalize
...
...
This diff is collapsed.
Click to expand it.
workflows/prefactor_target/finalize.cwl
+
48
−
3
View file @
274162b0
...
@@ -46,22 +46,30 @@ outputs:
...
@@ -46,22 +46,30 @@ outputs:
outputSource:
outputSource:
- apply_gsmcal/msout
- apply_gsmcal/msout
type: 'Directory[]'
type: 'Directory[]'
'sbg:x': 1
0
00
'sbg:x': 1
3
00
'sbg:y': 0
'sbg:y': 0
- id: solutions
- id: solutions
outputSource:
outputSource:
- h5parm_pointingname/outh5parm
- h5parm_pointingname/outh5parm
type: File
type: File
'sbg:x': 1
0
00
'sbg:x': 1
3
00
'sbg:y': 200
'sbg:y': 200
- id: logfiles
- id: logfiles
outputSource:
outputSource:
- concat_logfiles_applygsm/output
- concat_logfiles_applygsm/output
- concat_logfiles_solutions/output
- concat_logfiles_solutions/output
- concat_logfiles_structure/output
type: 'File[]'
type: 'File[]'
linkMerge: merge_flattened
linkMerge: merge_flattened
'sbg:x': 1
0
00
'sbg:x': 1
3
00
'sbg:y': 800
'sbg:y': 800
- id: inspection
outputSource:
- structure_function/structure_plot
type: 'File[]?'
linkMerge: merge_flattened
'sbg:x': 1300
'sbg:y': 500
steps:
steps:
- id: add_missing_stations
- id: add_missing_stations
in:
in:
...
@@ -169,6 +177,27 @@ steps:
...
@@ -169,6 +177,27 @@ steps:
label: h5parm_pointingname
label: h5parm_pointingname
'sbg:x': 400
'sbg:x': 400
'sbg:y': 200
'sbg:y': 200
- id: structure_function
in:
- id: h5parmFile
source: write_solutions/outh5parm
- id: solset
default: 'target'
- id: soltab
source:
- skymodel_source
- gsmcal_step
valueFrom: $(self.join(''))
- id: outbasename
source: get_targetname/targetname
out:
- id: structure_plot
- id: structure_txt
- id: log
run: ../../steps/structure_function.cwl
label: structure_function
'sbg:x': 500
'sbg:y': 300
- id: concat_logfiles_applygsm
- id: concat_logfiles_applygsm
in:
in:
- id: file_list
- id: file_list
...
@@ -200,6 +229,22 @@ steps:
...
@@ -200,6 +229,22 @@ steps:
label: concat_logfiles_solutions
label: concat_logfiles_solutions
'sbg:x': 500
'sbg:x': 500
'sbg:y': 500
'sbg:y': 500
- id: concat_logfiles_structure
in:
- id: file_list
linkMerge: merge_flattened
source:
- structure_function/log
- structure_function/structure_txt
- id: file_prefix
source: get_targetname/targetname
valueFrom: $(self+'_structure')
out:
- id: output
run: ../../steps/concatenate_files.cwl
label: concat_logfiles_structure
'sbg:x': 950
'sbg:y': 500
- id: get_targetname
- id: get_targetname
in:
in:
- id: msin
- id: msin
...
...
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