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: