Skip to content

Conversation

@vandalt
Copy link
Contributor

@vandalt vandalt commented Oct 10, 2025

Arviz is migrating to xarray.DataTree objects to replace InferenceData soon (see the Migration Guide docs page).

The only thing required for corner to work with a DataTree object seems to be importing convert_to_dataset from arviz.preview. This PR tries to do that and falls back to importing it from arviz. There is also a unit test using arivz.preview to convert a dictionary to a DataTree.

After Arviz 1.0 is released, the new interface currently in arviz.preview will replace the current arviz namespace. Some extra changes to corner will likely be required then, but for now this PR allows users to experiment with the new interface while keeping everything working with the current ("legacy") arviz version.

Arviz is migrating to xarray.DataTree instead of InferenceData soon.
Ref: https://python.arviz.org/en/stable/user_guide/migration_guide.html.
@dfm
Copy link
Owner

dfm commented Oct 10, 2025

Thanks!

@dfm dfm merged commit 1388a7e into dfm:main Oct 10, 2025
8 checks passed
@vandalt vandalt deleted the arviz-preview branch October 10, 2025 16:12
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