Skip to content

Commit

Permalink
fix: transforming fid to int before processing
Browse files Browse the repository at this point in the history
  • Loading branch information
pgallardor committed Nov 2, 2023
1 parent 08dc20d commit 6131570
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metadata_step/metadata_step/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ def __init__(self, config, db_sql: PSQLConnection, **step_args):
self.db = db_sql

def _format_detection(self, d: Dict, catalogs: Dict):
FID = {"g": 1, "r": 2}
d = d.copy()
d["fid"] = FID[d["fid"]]
extra_fields = d.pop("extra_fields")
extra_fields.pop("fp_hists", {})
extra_fields.pop("prv_candidates", {})
Expand Down

0 comments on commit 6131570

Please sign in to comment.