Skip to content

Commit

Permalink
Store actual map Id instead of derived one
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin authored Sep 8, 2023
1 parent f899bf7 commit f85cd2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions maps/python/map_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,11 @@ def __call__(self, frame):
if "InputMapIds" in frame:
# allow for recursive coadds
map_ids += list(frame["InputMapIds"])
elif map_id not in map_ids:
map_ids += [map_id]
cfr["InputMapIds"] = core.G3VectorString(map_ids)
elif frame.get("Id", None):
if frame["Id"] not in map_ids:
map_ids += [frame["Id"]]
if len(map_ids):
cfr["InputMapIds"] = core.G3VectorString(map_ids)

if "InputFiles" in cfr:
input_files = list(cfr.pop("InputFiles"))
Expand Down

0 comments on commit f85cd2e

Please sign in to comment.