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 16, 2023
1 parent 151e81a commit fe82c10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def parse(cls, message: dict, ra: float, dec: float) -> dict:
def extract_detections_and_non_detections(alert: dict) -> dict:
prv_candidates = alert["extra_fields"].pop("prvDiaSources")
prv_forced = alert["extra_fields"].pop("prvDiaForcedSources")

detections = [alert.copy()]

aid, parent = alert["aid"], alert["candid"]
Expand Down
4 changes: 3 additions & 1 deletion prv_candidates_step/prv_candidates_step/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def post_execute(self, result: List[dict]):
msg["candid"] for msg in result if msg["candid"] == CANDID_SEARCH
]
if len(with_candid) == 0:
raise Exception(f"=====\nALERT WITH CANDID {CANDID_SEARCH} DISAPPEARED!")
raise Exception(
f"=====\nALERT WITH CANDID {CANDID_SEARCH} DISAPPEARED!"
)
for alert in result:
non_detections = alert["non_detections"]
self.produce_scribe(non_detections)
Expand Down
1 change: 0 additions & 1 deletion xmatch_step/xmatch_step/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def _add_non_detection(message):
)
return message

self.set_producer_key_field("aid")
return list(map(_add_non_detection, result))

def request_xmatch(
Expand Down

0 comments on commit fe82c10

Please sign in to comment.