You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running standardized_precipitation_evapotranspiration_index xclim runs into the error
File ".../.venv/lib/python3.13/site-packages/xclim/indices/generic.py", line 282, in get_op
return xr.core.ops.get_op(binary_op) # noqa
^^^^^^^^^^^
AttributeError: module 'xarray.core' has no attribute 'ops'
The error does not occur with the previous version of xarray 2025.01.2
I believe xr.computation.ops.get_op should become xr.core.ops.get_op. My suggested fix would be:
Thanks for the issue @jensdebruijn ! This should have been detected by the upstream CI... I just realized it's been failing (for another reason) for the last week but the automatic issue maker seems not to have been triggered.
If we can solve this without using "private" modules from xarray, it would be better I guess.
Setup Information
Description
When running
standardized_precipitation_evapotranspiration_index
xclim runs into the errorThe error does not occur with the previous version of xarray 2025.01.2
I believe
xr.computation.ops.get_op
should becomexr.core.ops.get_op
. My suggested fix would be:Steps To Reproduce
Additional context
No response
Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: