Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy 2 compat #505

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cf_xarray/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# At this point, we might have different corners for adjacent cells, we average them together to have a nice grid
# To make this vectorized and keep the edges, we'll pad with NaNs and ignore them in the averages
daXYp = (
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)

Check warning on line 51 in cf_xarray/helpers.py

View check run for this annotation

Codecov / codecov/patch

cf_xarray/helpers.py#L51

Added line #L51 was not covered by tests
.transpose(*dims, "Xbnds", "Ybnds")
.values
) # Tranpose for an easier notation
Expand Down