From 975488ad6e420400aa27e7b46d1eedad7f175c5f Mon Sep 17 00:00:00 2001 From: Hsin-Fang Chiang Date: Thu, 17 Oct 2024 16:18:54 -0700 Subject: [PATCH] TBS --- src/ingest.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ingest.py b/src/ingest.py index 9a026a4..00ef18e 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: