Skip to content
Snippets Groups Projects
Commit d6fabd4e authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

Accounted for rogue-ly named ancillaries plus vlass_seci

parent ea9926b6
No related branches found
No related tags found
2 merge requests!1452Merge 2.8.2 to main,!1383WS-1769 VLA manifest creation
Pipeline #10033 passed
......@@ -94,6 +94,10 @@ class ImageIngestionProductsFinder:
if image_file.name.startswith(sp.name.split(PBCOR)[0]):
# Add this as an ancillary to a similarly named science product
sp_aps.get(sp).append(sp_ap)
break
elif sp == next(reversed(sp_aps.keys())):
# No similar names found, add this as an ancillary to the first sp (covers VLASS_SECI too)
next(iter(sp_aps.values())).append(sp_ap)
self.logger.info(f"Science Product -> Ancillary mapping: {sp_aps}")
science_products = []
......
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