Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Prefactor3-CWL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
David Rafferty
Prefactor3-CWL
Commits
f09df9d5
Commit
f09df9d5
authored
5 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Add LoSoTo.Plot
parent
b2f9cfb0
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
.gitlab-ci.yml
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
steps/LoSoTo.Plot.cwl
+12
-6
12 additions, 6 deletions
steps/LoSoTo.Plot.cwl
test_jobs/losoto_plot.json
+6
-0
6 additions, 0 deletions
test_jobs/losoto_plot.json
with
23 additions
and
6 deletions
.gitlab-ci.yml
+
5
−
0
View file @
f09df9d5
...
@@ -46,6 +46,11 @@ losoto_abs:
...
@@ -46,6 +46,11 @@ losoto_abs:
allow_failure
:
true
allow_failure
:
true
script
:
script
:
-
cwl-runner --no-container steps/LoSoTo.Abs.cwl test_jobs/losoto_abs.json
-
cwl-runner --no-container steps/LoSoTo.Abs.cwl test_jobs/losoto_abs.json
losoto_plot
:
stage
:
test_steps
allow_failure
:
true
script
:
-
cwl-runner --no-container steps/LoSoTo.Plot.cwl test_jobs/losoto_plot.json
parset_selector
:
parset_selector
:
stage
:
test_steps
stage
:
test_steps
...
...
This diff is collapsed.
Click to expand it.
steps/LoSoTo.Plot.cwl
+
12
−
6
View file @
f09df9d5
...
@@ -14,11 +14,13 @@ requirements:
...
@@ -14,11 +14,13 @@ requirements:
- |
- |
function get_config() {
function get_config() {
var par = ['soltab = ' + inputs.soltab]
var par = ['soltab = ' + inputs.soltab]
if (inputs.ncpu !== null) par.push('ncpu='+inputs.ncpu);
par.push('[plot]')
par.push('[plot]')
par.push('operation = PLOT')
par.push('operation = PLOT')
for(var field_name in inputs){
for(var field_name in inputs){
if(field_name === 'input_file' ||
if(field_name === 'input_h5parm' ||
field_name === 'soltab') continue;
field_name === 'soltab' ||
field_name === 'ncpu') continue;
if(inputs[field_name] === null ||
if(inputs[field_name] === null ||
inputs[field_name] === 'null') continue;
inputs[field_name] === 'null') continue;
par.push(field_name+'='+inputs[field_name])
par.push(field_name+'='+inputs[field_name])
...
@@ -29,12 +31,15 @@ requirements:
...
@@ -29,12 +31,15 @@ requirements:
listing:
listing:
- entryname: 'parset.config'
- entryname: 'parset.config'
entry: $(get_config().join('\n'))
entry: $(get_config().join('\n'))
- entryname: $(inputs.input_h5parm.basename)
entry: $(inputs.input_h5parm)
writable: true
baseCommand: "losoto"
baseCommand: "losoto"
arguments:
arguments:
- $(inputs.input_
fil
e)
- $(inputs.input_
h5parm.basenam
e)
- parset.config
- parset.config
hints:
hints:
...
@@ -42,7 +47,7 @@ hints:
...
@@ -42,7 +47,7 @@ hints:
dockerPull: lofareosc/prefactor-ci:master
dockerPull: lofareosc/prefactor-ci:master
inputs:
inputs:
- id: input_
file
- id: input_
h5parm
type: File
type: File
- id: soltab
- id: soltab
type: string[]
type: string[]
...
@@ -69,7 +74,6 @@ inputs:
...
@@ -69,7 +74,6 @@ inputs:
- e.g. ‘pol’ to plot XX-YY.
- e.g. ‘pol’ to plot XX-YY.
- id: NColFig
- id: NColFig
type: int?
type: int?
type: string
doc: |
doc: |
Number of columns in a multi-table image. By default is automatically
Number of columns in a multi-table image. By default is automatically
chosen.
chosen.
...
@@ -132,4 +136,6 @@ inputs:
...
@@ -132,4 +136,6 @@ inputs:
outputs:
outputs:
- id: output_plots
- id: output_plots
type: Any[]
type: File[]
outputBinding:
glob: "$(inputs.prefix)*.png"
This diff is collapsed.
Click to expand it.
test_jobs/losoto_plot.json
0 → 100644
+
6
−
0
View file @
f09df9d5
{
"input_h5parm"
:
{
"class"
:
"File"
,
"path"
:
"/data/example.h5"
},
"soltab"
:
[
"sol000/phase000"
],
"axesInPlot"
:
[
"time"
],
"ncpu"
:
1
}
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