Skip to content

Commit 5a35ca4

Browse files
authored
use nan instead of NaN (#8961)
1 parent 5f24079 commit 5a35ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/tests/test_calendar_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_convert_calendar_360_days_random():
138138
assert (conv2 != conv).any()
139139

140140
# Ensure that added days are evenly distributed in the 5 fifths of each year
141-
conv = convert_calendar(da_360, "noleap", align_on="random", missing=np.NaN)
141+
conv = convert_calendar(da_360, "noleap", align_on="random", missing=np.nan)
142142
conv = conv.where(conv.isnull(), drop=True)
143143
nandoys = conv.time.dt.dayofyear[:366]
144144
assert all(nandoys < np.array([74, 147, 220, 293, 366]))

0 commit comments

Comments
 (0)