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

TMSS-528: minor fixes

parent 575ae099
No related branches found
No related tags found
1 merge request!366Resolve TMSS-528 "Beamformer support"
......@@ -51,7 +51,7 @@ def _stokes_settings_parset_subkeys(stokes_spec: dict) -> dict:
parset['timeIntegrationFactor'] = stokes_spec['time_integration_factor']
parset['subbandsPerFile'] = stokes_spec['subbands_per_file']
quantisation = parset['quantize'] = stokes_spec['quantisation_enabled']
quantisation = parset['quantize'] = stokes_spec.get('quantisation',{}).get('enabled', False)
if quantisation:
parset['quantizeBits'] = stokes_spec['quantisation']['bits']
parset['quantizeScaleMax'] = stokes_spec['quantisation']['scale_max']
......@@ -183,11 +183,11 @@ def _convert_beamformer_settings_to_parset_dict(subtask: models.Subtask, spec: d
if cobalt_version >= 2:
pipeline_parset['Beam[%s].subbandList' % sap_idx] = sap['subbands']
if cobalt_version == 1:
# This won't overwrite anything, since COBALT1 supports only one beamformer pipeline
parset["Cobalt.BeamFormer.stationList"] = pipeline['stations']
else:
pipeline_parset['Beam[%s].stationList' % sap_idx] = pipeline['stations']
if cobalt_version == 1:
# This won't overwrite anything, since COBALT1 supports only one beamformer pipeline
parset["Cobalt.BeamFormer.stationList"] = pipeline['stations']
else:
pipeline_parset['Beam[%s].stationList' % sap_idx] = pipeline['stations']
beamformer_pipeline_parsets.append(pipeline_parset)
......
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