Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit d3b2a6d

Browse files
authored
Fix for xarray v2023.12.0 (#294)
* fix import of xarray.testing internals that was changed by pydata/xarray#8404 * bump minimum required version of xarray * linting
1 parent ab31252 commit d3b2a6d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

datatree/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from xarray.testing import ensure_warnings
1+
from xarray.testing.assertions import ensure_warnings
22

33
from .datatree import DataTree
44
from .formatting import diff_tree_repr

docs/source/whats-new.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ New Features
2626
Breaking changes
2727
~~~~~~~~~~~~~~~~
2828

29+
- Minimum required version of xarray is now 2023.12.0, i.e. the latest version.
30+
This is required to prevent recent changes to xarray's internals from breaking datatree.
31+
(:issue:`293`, :pull:`294`)
32+
By `Tom Nicholas <https://github.com/TomNicholas>`_.
2933
- Change default write mode of :py:meth:`DataTree.to_zarr` to ``'w-'`` to match ``xarray``
3034
default and prevent accidental directory overwrites. (:issue:`274`, :pull:`275`)
3135
By `Sam Levang <https://github.com/slevang>`_.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ classifiers = [
1919
]
2020
requires-python = ">=3.9"
2121
dependencies = [
22-
"xarray >=2022.6.0",
22+
"xarray >=2023.12.0",
2323
"packaging",
2424
]
2525
dynamic = ["version"]

0 commit comments

Comments
 (0)