xarray-contrib / datatree

WIP implementation of a tree-like hierarchical data structure for xarray.
https://xarray-datatree.readthedocs.io
Apache License 2.0
161 stars 43 forks source link

Cannot import 'datatree.testing' with Xarray 2023.12.0 #293

Closed flemmel closed 6 months ago

flemmel commented 6 months ago

Hello everybody,

It's not possible to import datatree.testing with the Xarray 2023.12.0

Here is the error message:

>>> import datatree.testing     # or from datatree.testing import assert_identical
ImportError: cannot import name 'ensure_warnings' from 'xarray.testing' 
TomNicholas commented 6 months ago

Thank you for raising this and alerting me! This is a manifestation of the fragility I warned about in #270. It is fixed by #294, and I'll issue a release with that fix shortly.