Skip to content

Commit 5ce49f2

Browse files
Fix syntax when filtering for NaN and None (#154)
1 parent e7eec1b commit 5ce49f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fink_utils/tg_bot/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def get_curve(
435435

436436
# y data -- assume NaN (Spark style) and None (Pandas style) for missing values
437437
maskNotNone = np.array([
438-
~np.isnan(i) and (i is not None) for i in magpsf[mask]
438+
(i is not None) and ~np.isnan(i) for i in magpsf[mask]
439439
])
440440
plt.errorbar(
441441
dates[mask][maskNotNone],

0 commit comments

Comments
 (0)