arviz-devs / arviz-base

Base ArviZ features and converters
https://arviz-base.readthedocs.io/
Apache License 2.0
0 stars 2 forks source link

Use `DataTree` from xarray #14

Open OriolAbril opened 2 months ago

OriolAbril commented 2 months ago

DataTree is already available in main and will be usable and importable from xarray directly starting with next xarray release. see https://docs.xarray.dev/en/latest/whats-new.html and https://github.com/pydata/xarray/issues/8807

OriolAbril commented 1 month ago

We should also discuss how quickly do we want to make the switch. There have already been a couple changes of behaviour between DataTree in xarray-datatree package and DataTree in xarray itself so I'd probably change the dependency as soon as the next xarray release is out to make sure we don't end up with a painful transition later on when we'd like to start advertizing the library

OriolAbril commented 1 month ago

Ref: https://github.com/pydata/xarray/blob/main/DATATREE_MIGRATION_GUIDE.md