Skip to content

Commit

Permalink
refactor: keep -999999 value (as ztf does) instead of nan
Browse files Browse the repository at this point in the history
  • Loading branch information
dirodriguezm committed Dec 6, 2023
1 parent 9e8ce4f commit 10f285b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prv_candidates_step/prv_candidates_step/core/strategy/ztf.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ def __calculate_mag(cls, data):
e_mag = 1.0857 * forcediffimfluxunc / np.abs(forcediffimflux)

if np.isclose(data["forcediffimflux"], -99999.0):
mag = np.nan
e_mag = np.nan
mag = -999999
e_mag = -999999

if np.isclose(data["forcediffimfluxunc"], -99999.0):
e_mag = np.nan
e_mag = -999999

return mag, e_mag

Expand Down

0 comments on commit 10f285b

Please sign in to comment.