-
Notifications
You must be signed in to change notification settings - Fork 64
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
Temporarily revert star annotation in call signatures - remove all internal xarray imports #2116
Conversation
for more information, see https://pre-commit.ci
This PR needs the changes from #2114 |
…2114) ### What kind of change does this PR introduce? * This PR fixes an issue with an operation not being available in xarray versions later than 2025.3.0 ### Does this PR introduce a breaking change? No breaking changes
… fix first() on datetime with xr 2025.3
…into revert-star-annotation
Note This Pull Request modifies the SDBA module. |
@Zeitsperre My last commit removed all xarray imports that were not from their "public" API, hoping that avoids all further problemes like we add with xarray 2025.3. To do so, I had to copy a few lines from xarray for the I also had to remove I also fixed an issue with setting options that are deep dictionaries. And fixed the issue with the missing methods. Flox is now enabled by default for resampling with |
This reverts commit e75491f.
Thanks for the fixes! Think you could mention this in the Changelog as a (potentially) breaking change? |
I don't think the user is impacted at all! This change does not change anything in the function's outputs. I found more xarray internals and removed them. I had to reimplement a version of The last xarray internal calls I see, but couldn't/wouldn't remove are:
Finally, I also had to remove the annotations from |
Pull Request Checklist:
number
) and pull request (:pull:number
) has been addedWhat kind of change does this PR introduce?
*
xclim
now uses directlyoperator
instead of usingxarray
's derivedget_op
function. A refactoring inxarray
had changed the position ofget_op
which caused a bug.xarray
's internal API were also removed (:pull:2116
).Does this PR introduce a breaking change?
No.