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

Fix for xarray v2023.12.0 #294

Merged
merged 3 commits into from
Dec 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading