Skip to content
Snippets Groups Projects
Commit a39a470e authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

do it better

parent 036eadef
No related branches found
No related tags found
2 merge requests!1571catch 2.8.2.3 up with main,!1497implement ingestNGAS flag only on EB ingestion (VLBA/GMVA currently)
Pipeline #12426 failed
......@@ -98,14 +98,15 @@ class IngestionManifest(ManifestComponentIF):
"""Determine and retrieve the correct ingestNGAS flag for this type of ingestion/curation"""
# default to true for all types
flag = True
if self.sp_type == ScienceProductType.EXEC_BLOCK:
# EB ingestion might create duplicate file versions during testing, check flag state
flag = CapoConfig().getboolean("archive-ingestion.ingestNGAS.observation")
elif self.sp_type == ScienceProductType.EVLA_CAL:
flag = CapoConfig().getboolean("archive-ingestion.ingestNGAS.calibration")
elif self.sp_type == ScienceProductType.IMAGE or self.sp_type == ScienceProductType.VLASS_SECI:
flag = CapoConfig().getboolean("archive-ingestion.ingestNGAS.imaging")
match self.sp_type:
case ScienceProductType.EXEC_BLOCK:
flag = CapoConfig().getboolean("archive-ingestion.ingestNGAS.observation")
case ScienceProductType.EVLA_CAL:
flag = CapoConfig().getboolean("archive-ingestion.ingestNGAS.calibration")
case ScienceProductType.IMAGE | ScienceProductType.VLASS_SECI:
flag = CapoConfig().getboolean("archive-ingestion.ingestNGAS.imaging")
case _:
flag = True
return flag
......
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