Skip to content

Commit

Permalink
style: black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pgallardor committed Nov 6, 2023
1 parent 956efba commit e4b228f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions correction_step/correction/_step/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from pprint import pprint


class CorrectionStep(GenericStep):
"""Step that applies magnitude correction to new alert and previous candidates.
Expand Down
4 changes: 2 additions & 2 deletions lightcurve-step/lightcurve_step/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit e4b228f

Please sign in to comment.