Skip to content

Commit 262aeeb

Browse files
authored
Merge branch 'main' into issue_7704
2 parents 99a2276 + 0c6cded commit 262aeeb

31 files changed

+2421
-411
lines changed

.github/workflows/ci-additional.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
shell: bash -l {0}
9393
env:
9494
CONDA_ENV_FILE: ci/requirements/environment.yml
95-
PYTHON_VERSION: "3.11"
95+
PYTHON_VERSION: "3.12"
9696

9797
steps:
9898
- uses: actions/checkout@v4

ci/install-upstream-wheels.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ python -m pip install \
4545
--pre \
4646
--upgrade \
4747
pyarrow
48-
# manually install `pint` to pull in new dependencies
49-
python -m pip install --upgrade pint
48+
# manually install `pint`, `donfig`, and `crc32c` to pull in new dependencies
49+
python -m pip install --upgrade pint donfig crc32c
5050
python -m pip install \
5151
--no-deps \
5252
--upgrade \
5353
git+https://github.com/dask/dask \
5454
git+https://github.com/dask/dask-expr \
5555
git+https://github.com/dask/distributed \
56-
git+https://github.com/zarr-developers/zarr.git@main \
56+
git+https://github.com/zarr-developers/zarr \
5757
git+https://github.com/Unidata/cftime \
5858
git+https://github.com/pypa/packaging \
5959
git+https://github.com/hgrecco/pint \

doc/api.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ This interface echoes that of ``xarray.Dataset``.
656656
DataTree.has_attrs
657657
DataTree.is_empty
658658
DataTree.is_hollow
659+
DataTree.chunksizes
659660

660661
Dictionary Interface
661662
--------------------
@@ -968,6 +969,10 @@ DataTree methods
968969
DataTree.to_dict
969970
DataTree.to_netcdf
970971
DataTree.to_zarr
972+
DataTree.chunk
973+
DataTree.load
974+
DataTree.compute
975+
DataTree.persist
971976

972977
.. ..
973978

doc/user-guide/io.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,9 @@ For example:
823823
.. ipython:: python
824824
825825
import zarr
826+
from numcodecs.blosc import Blosc
826827
827-
compressor = zarr.Blosc(cname="zstd", clevel=3, shuffle=2)
828+
compressor = Blosc(cname="zstd", clevel=3, shuffle=2)
828829
ds.to_zarr("foo.zarr", encoding={"foo": {"compressor": compressor}})
829830
830831
.. note::

doc/whats-new.rst

Lines changed: 56 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,50 @@ What's New
1414
1515
np.random.seed(123456)
1616
17-
.. _whats-new.2024.09.1:
17+
.. _whats-new.2024.10.1:
1818

19-
v2024.09.1 (unreleased)
20-
-----------------------
19+
v.2024.10.1 (unreleased)
20+
------------------------
21+
22+
New Features
23+
~~~~~~~~~~~~
24+
- Added :py:meth:`DataTree.persist` method (:issue:`9675`, :pull:`9682`).
25+
By `Sam Levang <https://github.com/slevang>`_.
26+
27+
Breaking changes
28+
~~~~~~~~~~~~~~~~
29+
30+
31+
Deprecations
32+
~~~~~~~~~~~~
33+
34+
35+
Bug fixes
36+
~~~~~~~~~
37+
38+
- Fix inadvertent deep-copying of child data in DataTree.
39+
By `Stephan Hoyer <https://github.com/shoyer>`_.
40+
41+
Documentation
42+
~~~~~~~~~~~~~
43+
44+
45+
Internal Changes
46+
~~~~~~~~~~~~~~~~
47+
- ``persist`` methods now route through the :py:class:`xr.core.parallelcompat.ChunkManagerEntrypoint` (:pull:`9682`).
48+
By `Sam Levang <https://github.com/slevang>`_.
49+
50+
.. _whats-new.2024.10.0:
51+
52+
v2024.10.0 (Oct 24th, 2024)
53+
---------------------------
54+
55+
This release brings official support for `xarray.DataTree`, and compatibility with zarr-python v3!
56+
57+
Aside from these two huge features, it also improves support for vectorised interpolation and fixes various bugs.
58+
59+
Thanks to the 31 contributors to this release:
60+
Alfonso Ladino, DWesl, Deepak Cherian, Eni, Etienne Schalk, Holly Mandel, Ilan Gold, Illviljan, Joe Hamman, Justus Magin, Kai Mühlbauer, Karl Krauth, Mark Harfouche, Martey Dodoo, Matt Savoie, Maximilian Roos, Patrick Hoefler, Peter Hill, Renat Sibgatulin, Ryan Abernathey, Spencer Clark, Stephan Hoyer, Tom Augspurger, Tom Nicholas, Vecko, Virgile Andreani, Yvonne Fröhlich, carschandler, joseph nowak, mgunyho and owenlittlejohns
2161

2262
New Features
2363
~~~~~~~~~~~~
@@ -28,17 +68,26 @@ New Features
2868
By `Owen Littlejohns <https://github.com/owenlittlejohns>`_,
2969
`Eni Awowale <https://github.com/eni-awowale>`_,
3070
`Matt Savoie <https://github.com/flamingbear>`_,
31-
`Stephan Hoyer <https://github.com/shoyer>`_ and
32-
`Tom Nicholas <https://github.com/TomNicholas>`_.
71+
`Stephan Hoyer <https://github.com/shoyer>`_,
72+
`Tom Nicholas <https://github.com/TomNicholas>`_,
73+
`Justus Magin <https://github.com/keewis>`_, and
74+
`Alfonso Ladino <https://github.com/aladinor>`_.
3375
- A migration guide for users of the prototype `xarray-contrib/datatree repository <https://github.com/xarray-contrib/datatree>`_ has been added, and can be found in the `DATATREE_MIGRATION_GUIDE.md` file in the repository root.
3476
By `Tom Nicholas <https://github.com/TomNicholas>`_.
77+
- Support for Zarr-Python 3 (:issue:`95515`, :pull:`9552`).
78+
By `Tom Augspurger <https://github.com/TomAugspurger>`_,
79+
`Ryan Abernathey <https://github.com/rabernat>`_ and
80+
`Joe Hamman <https://github.com/jhamman>`_.
3581
- Added zarr backends for :py:func:`open_groups` (:issue:`9430`, :pull:`9469`).
3682
By `Eni Awowale <https://github.com/eni-awowale>`_.
3783
- Added support for vectorized interpolation using additional interpolators
3884
from the ``scipy.interpolate`` module (:issue:`9049`, :pull:`9526`).
3985
By `Holly Mandel <https://github.com/hollymandel>`_.
4086
- Implement handling of complex numbers (netcdf4/h5netcdf) and enums (h5netcdf) (:issue:`9246`, :issue:`3297`, :pull:`9509`).
4187
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
88+
- Fix passing missing arguments to when opening hdf5 and netCDF4 datatrees
89+
(:issue:`9427`, :pull: `9428`).
90+
By `Alfonso Ladino <https://github.com/aladinor>`_.
4291

4392
Breaking changes
4493
~~~~~~~~~~~~~~~~
@@ -70,6 +119,8 @@ Bug fixes
70119
<https://github.com/josephnowak>`_.
71120
- Fix binning by multiple variables where some bins have no observations. (:issue:`9630`).
72121
By `Deepak Cherian <https://github.com/dcherian>`_.
122+
- Fix issue where polyfit wouldn't handle non-dimension coordinates. (:issue:`4375`, :pull:`9369`)
123+
By `Karl Krauth <https://github.com/Karl-Krauth>`_.
73124

74125
Documentation
75126
~~~~~~~~~~~~~
@@ -80,12 +131,9 @@ Documentation
80131
By `Owen Littlejohns <https://github.com/owenlittlejohns>`_, `Matt Savoie <https://github.com/flamingbear>`_, and
81132
`Tom Nicholas <https://github.com/TomNicholas>`_.
82133

83-
84-
85134
Internal Changes
86135
~~~~~~~~~~~~~~~~
87136

88-
89137
.. _whats-new.2024.09.0:
90138

91139
v2024.09.0 (Sept 11, 2024)
@@ -153,17 +201,12 @@ Bug fixes
153201
date "0001-01-01". (:issue:`9108`, :pull:`9116`) By `Spencer Clark
154202
<https://github.com/spencerkclark>`_ and `Deepak Cherian
155203
<https://github.com/dcherian>`_.
156-
- Fix issue where polyfit wouldn't handle non-dimension coordinates. (:issue:`4375`, :pull:`9369`)
157-
By `Karl Krauth <https://github.com/Karl-Krauth>`_.
158204
- Fix issue with passing parameters to ZarrStore.open_store when opening
159205
datatree in zarr format (:issue:`9376`, :pull:`9377`).
160206
By `Alfonso Ladino <https://github.com/aladinor>`_
161207
- Fix deprecation warning that was raised when calling ``np.array`` on an ``xr.DataArray``
162208
in NumPy 2.0 (:issue:`9312`, :pull:`9393`)
163209
By `Andrew Scherer <https://github.com/andrew-s28>`_.
164-
- Fix passing missing arguments to when opening hdf5 and netCDF4 datatrees
165-
(:issue:`9427`, :pull: `9428`).
166-
By `Alfonso Ladino <https://github.com/aladinor>`_.
167210
- Fix support for using ``pandas.DateOffset``, ``pandas.Timedelta``, and
168211
``datetime.timedelta`` objects as ``resample`` frequencies
169212
(:issue:`9408`, :pull:`9413`).

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ accel = ["scipy", "bottleneck", "numbagg", "numba>=0.54", "flox", "opt_einsum"]
3737
complete = ["xarray[accel,etc,io,parallel,viz]"]
3838
dev = [
3939
"hypothesis",
40+
"jinja2",
4041
"mypy",
4142
"pre-commit",
4243
"pytest",
@@ -49,7 +50,7 @@ dev = [
4950
"sphinx_autosummary_accessors",
5051
"xarray[complete]",
5152
]
52-
io = ["netCDF4", "h5netcdf", "scipy", 'pydap; python_version<"3.10"', "zarr<3", "fsspec", "cftime", "pooch"]
53+
io = ["netCDF4", "h5netcdf", "scipy", 'pydap; python_version<"3.10"', "zarr", "fsspec", "cftime", "pooch"]
5354
etc = ["sparse"]
5455
parallel = ["dask[complete]"]
5556
viz = ["cartopy", "matplotlib", "nc-time-axis", "seaborn"]
@@ -124,6 +125,7 @@ module = [
124125
"nc_time_axis.*",
125126
"netCDF4.*",
126127
"netcdftime.*",
128+
"numcodecs.*",
127129
"opt_einsum.*",
128130
"pint.*",
129131
"pooch.*",

0 commit comments

Comments
 (0)