From 9c5126364a0bd3023f3dad30bb7f0e150cb538d5 Mon Sep 17 00:00:00 2001 From: Hsin-Fang Chiang Date: Fri, 1 Nov 2024 10:38:56 -0700 Subject: [PATCH] fixup! Ingest LSSTCam photodiode data --- src/ingest.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ingest.py b/src/ingest.py index 9a026a4..547df41 100644 --- a/src/ingest.py +++ b/src/ingest.py @@ -235,12 +235,14 @@ def main(): logger.info("Ingesting %s", resources) refs = None if is_lfa: - resources_photodiode = [ - resource - for resource in resources - if re.search(r"MTCamera/photodiode.*_photodiode.ecsv", resource) - ] - resources = [resource for resource in resources if resource not in resources_photodiode] + resources_photodiode = [] + resources_others = [] + for resource in resources: + if re.search(r"MTCamera/photodiode.*_photodiode.ecsv", resource): + resources_photodiode.append(resource) + else: + resources_others.append(resource) + resources = resources_others try: refs = ingester.run(resources) except Exception: