From 61315707ebc1e5a9f13a248b896a0728e04cd276 Mon Sep 17 00:00:00 2001 From: Pedro Gallardo Date: Thu, 2 Nov 2023 16:49:05 -0300 Subject: [PATCH] fix: transforming fid to int before processing --- metadata_step/metadata_step/step.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metadata_step/metadata_step/step.py b/metadata_step/metadata_step/step.py index 3a3a46146..2f84cef04 100644 --- a/metadata_step/metadata_step/step.py +++ b/metadata_step/metadata_step/step.py @@ -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", {})