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

update ngas flag determination

parent e62d8257
No related branches found
No related tags found
2 merge requests!1605Merge 2.8.2.3 work to main,!1496integrate curator with envoy for workflow
Pipeline #12429 failed
...@@ -105,12 +105,15 @@ class IngestionManifest(ManifestComponentIF): ...@@ -105,12 +105,15 @@ class IngestionManifest(ManifestComponentIF):
def get_ngas_flag(self) -> bool: def get_ngas_flag(self) -> bool:
"""Determine and retrieve the correct ingestNGAS flag for this type of ingestion/curation""" """Determine and retrieve the correct ingestNGAS flag for this type of ingestion/curation"""
# default to true for all types match self.sp_type:
flag = True case ScienceProductType.EXEC_BLOCK:
# TODO: Add properties for other types flag = CapoConfig().getboolean("archive-ingestion.ingestNGAS.observation")
if self.sp_type == ScienceProductType.EXEC_BLOCK: case ScienceProductType.EVLA_CAL:
if self.telescope == Telescope.VLBA or self.telescope == Telescope.GMVA: flag = CapoConfig().getboolean("archive-ingestion.ingestNGAS.calibration")
flag = CapoConfig().getboolean("archive-ingestion.ingestNGAS") case ScienceProductType.IMAGE | ScienceProductType.VLASS_SECI:
flag = CapoConfig().getboolean("archive-ingestion.ingestNGAS.imaging")
case _:
flag = True
return flag 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