From e4b228f7c4ad0a76ae8db1212e2c0de6d7c89d9a Mon Sep 17 00:00:00 2001 From: Pedro Gallardo Date: Mon, 6 Nov 2023 10:56:03 -0300 Subject: [PATCH] style: black formatting --- correction_step/correction/_step/step.py | 1 + lightcurve-step/lightcurve_step/step.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/correction_step/correction/_step/step.py b/correction_step/correction/_step/step.py index 196274a59..6b7eb5a68 100644 --- a/correction_step/correction/_step/step.py +++ b/correction_step/correction/_step/step.py @@ -11,6 +11,7 @@ from pprint import pprint + class CorrectionStep(GenericStep): """Step that applies magnitude correction to new alert and previous candidates. diff --git a/lightcurve-step/lightcurve_step/step.py b/lightcurve-step/lightcurve_step/step.py index 10c47e428..97737cfe6 100644 --- a/lightcurve-step/lightcurve_step/step.py +++ b/lightcurve-step/lightcurve_step/step.py @@ -54,7 +54,7 @@ def pre_execute(cls, messages: List[dict]) -> dict: last_mjds[aid] = max(last_mjds.get(aid, 0), msg["detections"][0]["mjd"]) detections.extend([det | {"new": True} for det in msg["detections"]]) non_detections.extend(msg["non_detections"]) - + logger = logging.getLogger("alerce.LightcurveStep") logger.debug(f"Received {len(detections)} detections from messages") return { @@ -233,7 +233,7 @@ def serialize_dia_object(ef: dict): except KeyError: nd = [] dets["extra_fields"] = dets["extra_fields"].apply(serialize_dia_object) - if not os.getenv("SKIP_MJD_FILTER", "false") == "true": + if not os.getenv("SKIP_MJD_FILTER", "false") == "true": mjds = result["last_mjds"] dets = dets[dets["mjd"] <= mjds[aid]] output.append(