Skip to content

Commit

Permalink
Fix syntax when filtering for NaN and None
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Feb 13, 2025
1 parent e7eec1b commit 96e5022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fink_utils/tg_bot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def get_curve(

# y data -- assume NaN (Spark style) and None (Pandas style) for missing values
maskNotNone = np.array([
~np.isnan(i) and (i is not None) for i in magpsf[mask]
(i is not None) and ~np.isnan(i) for i in magpsf[mask]
])
plt.errorbar(
dates[mask][maskNotNone],
Expand Down

0 comments on commit 96e5022

Please sign in to comment.