Skip to content
Snippets Groups Projects
Commit c0eb4d11 authored by alex's avatar alex
Browse files

optimize logfile and inspection plot management

parent 1401791b
No related branches found
No related tags found
2 merge requests!69Change the name of the pre-calibrated output MS,!20Merge request HBA_calibrator to master
Pipeline #1148 failed
...@@ -15,11 +15,12 @@ inputs: ...@@ -15,11 +15,12 @@ inputs:
type: string type: string
- id: file_suffix - id: file_suffix
type: string? type: string?
default: log
outputs: outputs:
- id: output - id: output
type: 'File[]' type: File
outputBinding: outputBinding:
glob: "tmp/$(inputs.file_prefix)*" glob: "$(inputs.file_prefix).$(inputs.file_suffix)"
label: bulk_rename label: bulk_rename
requirements: requirements:
- class: InitialWorkDirRequirement - class: InitialWorkDirRequirement
...@@ -31,9 +32,6 @@ requirements: ...@@ -31,9 +32,6 @@ requirements:
FILE_LIST=("\${@}") FILE_LIST=("\${@}")
FILE_PREFIX=$(inputs.file_prefix) FILE_PREFIX=$(inputs.file_prefix)
FILE_SUFFIX=$(inputs.file_suffix === null ? '' : inputs.file_suffix) FILE_SUFFIX=$(inputs.file_suffix === null ? '' : inputs.file_suffix)
mkdir tmp cat "\${FILE_LIST[@]}" > "\$FILE_PREFIX.\$FILE_SUFFIX"
for i in "\${!FILE_LIST[@]}"; do
cp "\${FILE_LIST[\$i]}" "tmp/\${FILE_PREFIX}_\${i}\${FILE_SUFFIX}"
done
writable: false writable: false
- class: InlineJavascriptRequirement - class: InlineJavascriptRequirement
class: Workflow class: Workflow
cwlVersion: v1.0 cwlVersion: v1.0
id: HBA_calibrator id: _h_b_a_calibrator
label: HBA_calibrator label: HBA_calibrator
$namespaces: $namespaces:
sbg: 'https://www.sevenbridges.com/' sbg: 'https://www.sevenbridges.com/'
...@@ -73,7 +73,7 @@ inputs: ...@@ -73,7 +73,7 @@ inputs:
'sbg:y': -500 'sbg:y': -500
- id: maxStddev - id: maxStddev
type: float? type: float?
default: -1.0 default: -1
'sbg:x': -1000 'sbg:x': -1000
'sbg:y': -400 'sbg:y': -400
- id: solutions2transfer - id: solutions2transfer
...@@ -160,7 +160,7 @@ inputs: ...@@ -160,7 +160,7 @@ inputs:
'sbg:y': 1200 'sbg:y': 1200
- id: max_separation_arcmin - id: max_separation_arcmin
type: float? type: float?
default: 1.0 default: 1
'sbg:x': -1000 'sbg:x': -1000
'sbg:y': 1300 'sbg:y': 1300
- id: calibrator_path_skymodel - id: calibrator_path_skymodel
...@@ -192,63 +192,41 @@ inputs: ...@@ -192,63 +192,41 @@ inputs:
'sbg:x': -1000 'sbg:x': -1000
'sbg:y': 1900 'sbg:y': 1900
outputs: outputs:
- id: check_Ateam_separation.png
outputSource:
- prefactor/check_Ateam_separation.png
type: 'File[]?'
'sbg:x': 1000
'sbg:y': -300
- id: check_Ateam_separation.log
outputSource:
- prefactor/check_Ateam_separation.log
type: 'File[]?'
'sbg:x': 1000
'sbg:y': -200
- id: make_sourcedb_ateam.log
outputSource:
- prefactor/make_sourcedb_ateam.log
type: File?
'sbg:x': 1000
'sbg:y': -100
- id: msout - id: msout
outputSource: outputSource:
- prefactor/msout - prefactor/msout
type: 'Directory[]' type: 'Directory[]'
'sbg:x': 1000 'sbg:x': 1500
'sbg:y': -100
- id: logs
outputSource:
- save_logfiles/log_dir
type: Directory
'sbg:x': 1500
'sbg:y': 0 'sbg:y': 0
- id: logfile_prep_cal - id: inspection
outputSource: outputSource:
- prefactor/logfile_prep_cal - save_inspection/log_dir
type: 'File[]?' type: Directory
'sbg:x': 1000 'sbg:x': 1500
'sbg:y': 100 'sbg:y': 100
- id: parset - id: parset
outputSource: outputSource:
- prefactor/parset - prefactor/parset
type: 'File[]' type: 'File[]'
'sbg:x': 1000 'sbg:x': 1500
'sbg:y': 200 'sbg:y': 200
- id: find_skymodel_cal.log
outputSource:
- prefactor/find_skymodel_cal.log
type: File
'sbg:x': 1000
'sbg:y': 300
- id: make_sourcedb.log
outputSource:
- prefactor/make_sourcedb.log
type: File
'sbg:x': 1000
'sbg:y': 400
steps: steps:
- id: prefactor - id: prefactor
in: in:
- id: msin - id: msin
source: msin source:
- msin
- id: refant - id: refant
source: refant source: refant
- id: flag_baselines - id: flag_baselines
source: flag_baselines source:
- flag_baselines
- id: process_baselines_cal - id: process_baselines_cal
source: process_baselines_cal source: process_baselines_cal
- id: filter_baselines - id: filter_baselines
...@@ -260,7 +238,8 @@ steps: ...@@ -260,7 +238,8 @@ steps:
- id: max2interpolate - id: max2interpolate
source: max2interpolate source: max2interpolate
- id: ampRange - id: ampRange
source: ampRange source:
- ampRange
- id: skip_international - id: skip_international
source: skip_international source: skip_international
- id: raw_data - id: raw_data
...@@ -276,7 +255,8 @@ steps: ...@@ -276,7 +255,8 @@ steps:
- id: antennas2transfer - id: antennas2transfer
source: antennas2transfer source: antennas2transfer
- id: demix_sources - id: demix_sources
source: demix_sources source:
- demix_sources
- id: demix_target - id: demix_target
source: demix_target source: demix_target
- id: demix_freqstep - id: demix_freqstep
...@@ -330,5 +310,51 @@ steps: ...@@ -330,5 +310,51 @@ steps:
label: prefactor_calibrator label: prefactor_calibrator
'sbg:x': 0 'sbg:x': 0
'sbg:y': 0 'sbg:y': 0
- id: concat_logfiles
in:
- id: file_list
source:
- prefactor/logfile_prep_cal
- id: file_prefix
default: dppp_prep_cal
out:
- id: output
run: ./../steps/bulk_rename.cwl
label: concat_logfiles
'sbg:x': 500
'sbg:y': 1000
- id: save_logfiles
in:
- id: log_files
linkMerge: merge_flattened
source:
- prefactor/check_Ateam_separation.log
- prefactor/make_sourcedb_ateam.log
- prefactor/find_skymodel_cal.log
- prefactor/make_sourcedb.log
- concat_logfiles/output
- id: sub_directory_name
default: logs
out:
- id: log_dir
run: ./../steps/collectlog.cwl
label: save_logfiles
'sbg:x': 1000
'sbg:y': 1000
- id: save_inspection
in:
- id: log_files
linkMerge: merge_flattened
source:
- prefactor/check_Ateam_separation.png
- id: sub_directory_name
default: inspection
out:
- id: log_dir
run: ./../steps/collectlog.cwl
label: save_inspection
'sbg:x': 1000
'sbg:y': 1200
requirements: requirements:
- class: SubworkflowFeatureRequirement - class: SubworkflowFeatureRequirement
- class: MultipleInputFeatureRequirement
...@@ -195,13 +195,13 @@ outputs: ...@@ -195,13 +195,13 @@ outputs:
- id: check_Ateam_separation.png - id: check_Ateam_separation.png
outputSource: outputSource:
- prep/check_Ateam_separation.png - prep/check_Ateam_separation.png
type: 'File[]?' type: File
'sbg:x': 1000 'sbg:x': 1000
'sbg:y': -300 'sbg:y': -300
- id: check_Ateam_separation.log - id: check_Ateam_separation.log
outputSource: outputSource:
- prep/check_Ateam_separation.log - prep/check_Ateam_separation.log
type: 'File[]?' type: File
'sbg:x': 1000 'sbg:x': 1000
'sbg:y': -200 'sbg:y': -200
- id: make_sourcedb_ateam.log - id: make_sourcedb_ateam.log
......
...@@ -104,13 +104,13 @@ outputs: ...@@ -104,13 +104,13 @@ outputs:
- id: check_Ateam_separation.png - id: check_Ateam_separation.png
outputSource: outputSource:
- check_ateam_separation/output_imag - check_ateam_separation/output_imag
type: 'File[]?' type: File
'sbg:x': 1000 'sbg:x': 1000
'sbg:y': -300 'sbg:y': -300
- id: check_Ateam_separation.log - id: check_Ateam_separation.log
outputSource: outputSource:
- check_ateam_separation/logfile - check_ateam_separation/logfile
type: 'File[]?' type: File
'sbg:x': 1000 'sbg:x': 1000
'sbg:y': -200 'sbg:y': -200
- id: make_sourcedb_ateam.log - id: make_sourcedb_ateam.log
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment