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

implement ingestNGAS flag only on EB ingestion (VLBA/GMVA currently)

parent 3f3ef693
No related branches found
No related tags found
3 merge requests!1571catch 2.8.2.3 up with main,!15592.8.2.2-DEVELOPMENT into main,!1551Cherry pick partial curation for patch
......@@ -129,6 +129,19 @@ class IngestionManifest(ManifestComponentIF):
return flag
def get_ngas_flag(self) -> bool:
"""Determine and retrieve the correct ingestNGAS flag for this type of ingestion/curation"""
# default to true for all types
flag = True
# TODO: Add properties for other types
if self.sp_type == ScienceProductType.EXEC_BLOCK:
# EB ingestion might create duplicate file versions during testing, check flag state
if self.telescope == Telescope.VLBA or self.telescope == Telescope.GMVA:
flag = CapoConfig().getboolean("archive-ingestion.ingestNGAS")
return flag
def build_ingest_parameters(self, additional_metadata: AbstractTextFile):
"""
Make the "parameters" section of the manifest
......
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