We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141dc1b commit 107d073Copy full SHA for 107d073
cf_xarray/helpers.py
@@ -48,7 +48,7 @@ def _guess_bounds_2d(da, dims):
48
# At this point, we might have different corners for adjacent cells, we average them together to have a nice grid
49
# To make this vectorized and keep the edges, we'll pad with NaNs and ignore them in the averages
50
daXYp = (
51
- daXY.pad({d: (1, 1) for d in dims}, mode="constant", constant_values=np.NaN)
+ daXY.pad({d: (1, 1) for d in dims}, mode="constant", constant_values=np.nan)
52
.transpose(*dims, "Xbnds", "Ybnds")
53
.values
54
) # Tranpose for an easier notation
0 commit comments