Skip to content

Commit

Permalink
Fix for xarray v2023.12.0 (#294)
Browse files Browse the repository at this point in the history
* fix import of xarray.testing internals that was changed by pydata/xarray#8404

* bump minimum required version of xarray

* linting
  • Loading branch information
TomNicholas committed Dec 10, 2023
1 parent ab31252 commit d3b2a6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datatree/testing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from xarray.testing import ensure_warnings
from xarray.testing.assertions import ensure_warnings

from .datatree import DataTree
from .formatting import diff_tree_repr
Expand Down
4 changes: 4 additions & 0 deletions docs/source/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ New Features
Breaking changes
~~~~~~~~~~~~~~~~

- Minimum required version of xarray is now 2023.12.0, i.e. the latest version.
This is required to prevent recent changes to xarray's internals from breaking datatree.
(:issue:`293`, :pull:`294`)
By `Tom Nicholas <https://github.com/TomNicholas>`_.
- Change default write mode of :py:meth:`DataTree.to_zarr` to ``'w-'`` to match ``xarray``
default and prevent accidental directory overwrites. (:issue:`274`, :pull:`275`)
By `Sam Levang <https://github.com/slevang>`_.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
]
requires-python = ">=3.9"
dependencies = [
"xarray >=2022.6.0",
"xarray >=2023.12.0",
"packaging",
]
dynamic = ["version"]
Expand Down

0 comments on commit d3b2a6d

Please sign in to comment.