-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
np.cumproduct deprecated #8013
Comments
Thanks @quantsnus This should be a really easy Pull Request. Do you have time to fix it? We have contributing instructions here: https://docs.xarray.dev/en/stable/contributing.html |
In particular see the section of the contributing guide explaining how to add a deprecation warning |
no need for a deprecation cycle since the |
I'll give it try. Will be my first contribution, but for a one-line change I guess it won't be too difficult. |
What is your issue?
Since numpy version 1.25.0
np.cumproduct
is deprecated in favor ofnp.cumprod
.The coordinates to_index() method still uses it
xarray/xarray/core/coordinates.py
Line 144 in 971be10
which results in an unecessary DeprecationWarning.
The text was updated successfully, but these errors were encountered: