Skip to content
Snippets Groups Projects
Commit cdfb1b86 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-207: use input dataproduct path

parent 57506cf4
No related branches found
No related tags found
1 merge request!175Resolve TMSS-207
...@@ -366,6 +366,13 @@ class QAService: ...@@ -366,6 +366,13 @@ class QAService:
subtask = self.tmsssession.get_subtask(subtask_id=subtask_id) subtask = self.tmsssession.get_subtask(subtask_id=subtask_id)
#TODO: use settings from subtask to tweak plot_hdf5_dynamic_spectra options #TODO: use settings from subtask to tweak plot_hdf5_dynamic_spectra options
dataproducts = self.tmsssession.get_subtask_input_dataproducts(subtask_id=subtask_id)
if not dataproducts:
raise ValueError("QA subtask %s has no input dataproducts" % subtask_id)
hdf5_path = os.path.join(dataproducts[0]['directory'], dataproducts[0]['filename'])
for plot_options in [['-1', '-acb'], # 'hot' autocor/crosscor, per baseline scaling with distinct polarization scales, in dB for plot_options in [['-1', '-acb'], # 'hot' autocor/crosscor, per baseline scaling with distinct polarization scales, in dB
['-1', '-acg'], # 'complex' autocor/crosscor, all baseline scaling with same polarization scales, in dB ['-1', '-acg'], # 'complex' autocor/crosscor, all baseline scaling with same polarization scales, in dB
['-1', '-acn', '--raw'], # normalized 'hot' autocor/crosscor, raw ['-1', '-acn', '--raw'], # normalized 'hot' autocor/crosscor, raw
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment