From 5a35ca42d5372980c6cf5ccb6c6767324dee5ebf Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Mon, 22 Apr 2024 00:01:03 +0200 Subject: [PATCH] use `nan` instead of `NaN` (#8961) --- xarray/tests/test_calendar_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/tests/test_calendar_ops.py b/xarray/tests/test_calendar_ops.py index 5a57083fd22..7d229371808 100644 --- a/xarray/tests/test_calendar_ops.py +++ b/xarray/tests/test_calendar_ops.py @@ -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]))