Skip to content

Commit

Permalink
use nan instead of NaN (#8961)
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis authored Apr 21, 2024
1 parent 5f24079 commit 5a35ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/tests/test_calendar_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_convert_calendar_360_days_random():
assert (conv2 != conv).any()

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

0 comments on commit 5a35ca4

Please sign in to comment.