Skip to content

Commit 107d073

Browse files
authored
numpy 2 compat (#505)
1 parent 141dc1b commit 107d073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cf_xarray/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _guess_bounds_2d(da, dims):
4848
# At this point, we might have different corners for adjacent cells, we average them together to have a nice grid
4949
# To make this vectorized and keep the edges, we'll pad with NaNs and ignore them in the averages
5050
daXYp = (
51-
daXY.pad({d: (1, 1) for d in dims}, mode="constant", constant_values=np.NaN)
51+
daXY.pad({d: (1, 1) for d in dims}, mode="constant", constant_values=np.nan)
5252
.transpose(*dims, "Xbnds", "Ybnds")
5353
.values
5454
) # Tranpose for an easier notation

0 commit comments

Comments
 (0)