Skip to content

Commit

Permalink
Add ztf match
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed Oct 18, 2024
1 parent 61a3d2e commit 8f1a96c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mirar/pipelines/winter/generator/candidates.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@ def winter_candidate_quality_filterer(source_table: SourceBatch) -> SourceBatch:
& ((src_df["sgscore1"] > 0.7) | (src_df["ps1strmprobstar1"] > 0.7))
)
)
& (src_df["ndethist"] > 0)
& ( # 2 WINTER detections or a ZTF name (and therefore a ZTF detection)
(src_df["ndethist"] > 0) | (pd.notnull(src_df["ztfname"]))
)
)
filtered_df = src_df[mask].reset_index(drop=True)

Expand Down

0 comments on commit 8f1a96c

Please sign in to comment.