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

TMSS-604: fixed test. do not assume that all dataproducts have the 'sap' template

parent 118dfd65
No related branches found
No related tags found
No related merge requests found
......@@ -114,8 +114,8 @@ def _convert_correlator_settings_to_parset_dict(subtask: models.Subtask, spec: d
for digi_beam in digi_beams:
for subband in digi_beam["subbands"]:
dataproduct = [dp for dp in dataproducts
if dp.specifications_doc["sap"] == digi_beam['name']
and dp.specifications_doc["subband"] == subband]
if dp.specifications_doc.get("sap") == digi_beam['name']
and dp.specifications_doc.get("subband") == subband]
correlator_dataproducts.append(dataproduct[0] if dataproduct else null_dataproduct)
......
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