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

fix: support new datatree #238

Merged
merged 1 commit into from
Oct 28, 2024
Merged

fix: support new datatree #238

merged 1 commit into from
Oct 28, 2024

Conversation

slevang
Copy link
Contributor

@slevang slevang commented Oct 25, 2024

xarray==2024.10.0 now has DataTree as public API, and the old prototype library has been archived.

The modifications here drop support for the archived version and ensure everything works on the new version that's available in xarray. Only downside is we have to bump the lower bound on xarray support all the way up to present.

# Rebuild multiindexes
dt = dt.set_index(dt.attrs.get("multiindexes", {}))
dt.dataset = dt.dataset.set_index(dt.attrs.get("multiindexes", {}))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the only thing actually broken on 2024.10.0, because they dropped some untested methods, to be re-implemented later.

@slevang slevang marked this pull request as ready for review October 25, 2024 16:45
@nicrie
Copy link
Contributor

nicrie commented Oct 26, 2024

LGTM, thank you for the quick update!

@slevang slevang merged commit 397d15a into main Oct 28, 2024
9 checks passed
@slevang slevang deleted the drop-archived-datatree branch October 30, 2024 16:47
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.

2 participants