Skip to content

Commit

Permalink
fixup! Ingest LSSTCam photodiode data
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinfang committed Nov 1, 2024
1 parent fb4f951 commit 9c51263
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9c51263

Please sign in to comment.