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

Remove function from private xarray module #340

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Conversation

aulemahal
Copy link
Collaborator

Fixes #338

We were using a method from xr.core.pycompat that was removed. That module is private, so this was a mistake on our end.

Also, the method was only used to check if a dataArray was dask-backed and load it if it was. However, calling load() on any array has the exact same effect anyway.

Seeing how this impacted downstream packages, this might warrant a minor or patch release!

@aulemahal aulemahal changed the title Remove pycompat Remove function from private xarray module Feb 19, 2024
@TomNicholas
Copy link
Member

Another option is to just copy the original code for is_dask_collection from xarray into xESMF if you really need it.

@aulemahal
Copy link
Collaborator Author

aulemahal commented Feb 19, 2024

Hum, turns out cf-xarray has the same issue! I'll open a PR and issue.

@aulemahal
Copy link
Collaborator Author

See xarray-contrib/cf-xarray#502

@aulemahal aulemahal closed this Feb 19, 2024
@aulemahal
Copy link
Collaborator Author

To trigger tests again.

@aulemahal aulemahal reopened this Feb 19, 2024
@aulemahal aulemahal merged commit 010d31f into master Feb 19, 2024
10 of 17 checks passed
@aulemahal aulemahal deleted the fix-for-xr2024 branch February 19, 2024 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upstream CI failure - xarray update
3 participants