Skip to content

Commit 4ad706f

Browse files
authored
Release notes for v2022.06.0 (#6815)
1 parent 4a52799 commit 4ad706f

File tree

2 files changed

+48
-34
lines changed

2 files changed

+48
-34
lines changed

doc/api.rst

+14-1
Original file line numberDiff line numberDiff line change
@@ -648,11 +648,23 @@ DataArray methods
648648
Coordinates objects
649649
===================
650650

651+
Dataset
652+
-------
653+
651654
.. autosummary::
652655
:toctree: generated/
653656

654-
core.coordinates.DataArrayCoordinates
655657
core.coordinates.DatasetCoordinates
658+
core.coordinates.DatasetCoordinates.dtypes
659+
660+
DataArray
661+
---------
662+
663+
.. autosummary::
664+
:toctree: generated/
665+
666+
core.coordinates.DataArrayCoordinates
667+
core.coordinates.DataArrayCoordinates.dtypes
656668

657669
Plotting
658670
========
@@ -812,6 +824,7 @@ DataArray
812824
:toctree: generated/
813825

814826
DataArrayRolling
827+
DataArrayRolling.__iter__
815828
DataArrayRolling.construct
816829
DataArrayRolling.reduce
817830
DataArrayRolling.argmax

doc/whats-new.rst

+34-33
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,44 @@ What's New
1616
1717
.. _whats-new.2022.06.0:
1818

19-
v2022.06.0 (unreleased)
20-
-----------------------
19+
v2022.06.0 (July 21, 2022)
20+
--------------------------
21+
22+
This release brings a number of bug fixes and improvements, most notably a major internal
23+
refactor of the indexing functionality, the use of `flox`_ in ``groupby`` operations,
24+
and experimental support for the new Python `Array API standard <https://data-apis.org/array-api/latest/>`_.
25+
It also stops testing support for the abandoned PyNIO.
26+
27+
Much effort has been made to preserve backwards compatibility as part of the indexing refactor.
28+
We are aware of one `unfixed issue <https://github.com/pydata/xarray/issues/6607>`_.
29+
30+
Please also see the `whats-new.2022.06.0rc0`_ for a full list of changes.
31+
32+
Many thanks to our 18 contributors:
33+
Bane Sullivan, Deepak Cherian, Dimitri Papadopoulos Orfanos, Emma Marshall, Hauke Schulz, Illviljan,
34+
Julia Signell, Justus Magin, Keewis, Mathias Hauser, Michael Delgado, Mick, Pierre Manchon, Ray Bell,
35+
Spencer Clark, Stefaan Lippens, Tom White, Travis A. O'Brien,
2136

2237
New Features
2338
~~~~~~~~~~~~
2439

25-
- Add :py:meth:`Dataset.dtypes`, :py:meth:`DatasetCoordinates.dtypes`,
26-
:py:meth:`DataArrayCoordinates.dtypes` properties: Mapping from variable names to dtypes.
40+
- Add :py:attr:`Dataset.dtypes`, :py:attr:`core.coordinates.DatasetCoordinates.dtypes`,
41+
:py:attr:`core.coordinates.DataArrayCoordinates.dtypes` properties: Mapping from variable names to dtypes.
2742
(:pull:`6706`)
2843
By `Michael Niklas <https://github.com/headtr1ck>`_.
2944
- Initial typing support for :py:meth:`groupby`, :py:meth:`rolling`, :py:meth:`rolling_exp`,
3045
:py:meth:`coarsen`, :py:meth:`weighted`, :py:meth:`resample`,
3146
(:pull:`6702`)
3247
By `Michael Niklas <https://github.com/headtr1ck>`_.
33-
- Experimental support for wrapping any array type that conforms to the python array api standard.
34-
(:pull:`6804`)
48+
- Experimental support for wrapping any array type that conforms to the python
49+
`array api standard <https://data-apis.org/array-api/latest/>`_. (:pull:`6804`)
3550
By `Tom White <https://github.com/tomwhite>`_.
3651

37-
Deprecations
38-
~~~~~~~~~~~~
39-
40-
4152
Bug fixes
4253
~~~~~~~~~
4354

44-
- :py:meth:`xarray.save_mfdataset` now passes ``**kwargs`` on to ``to_netcdf``,
45-
allowing the ``encoding`` and ``unlimited_dims`` options with ``save_mfdataset``.
55+
- :py:meth:`save_mfdataset` now passes ``**kwargs`` on to :py:meth:`Dataset.to_netcdf`,
56+
allowing the ``encoding`` and ``unlimited_dims`` options with :py:meth:`save_mfdataset`.
4657
(:issue:`6684`)
4758
By `Travis A. O'Brien <https://github.com/taobrienlbl>`_.
4859
- Fix backend support of pydap versions <3.3.0 (:issue:`6648`, :pull:`6656`).
@@ -61,16 +72,12 @@ Bug fixes
6172
(:issue:`6739`, :pull:`6744`)
6273
By `Michael Niklas <https://github.com/headtr1ck>`_.
6374

64-
Documentation
65-
~~~~~~~~~~~~~
66-
67-
6875
Internal Changes
6976
~~~~~~~~~~~~~~~~
7077

71-
- :py:meth:`xarray.core.groupby`, :py:meth:`xarray.core.rolling`,
72-
:py:meth:`xarray.core.rolling_exp`, :py:meth:`xarray.core.weighted`
73-
and :py:meth:`xarray.core.resample` modules are no longer imported by default.
78+
- ``xarray.core.groupby``, ``xarray.core.rolling``,
79+
``xarray.core.rolling_exp``, ``xarray.core.weighted``
80+
and ``xarray.core.resample`` modules are no longer imported by default.
7481
(:pull:`6702`)
7582

7683
.. _whats-new.2022.06.0rc0:
@@ -123,7 +130,7 @@ New Features
123130
elements which trigger summarization rather than full repr in (numpy) array
124131
detailed views of the html repr (:pull:`6400`).
125132
By `Benoît Bovy <https://github.com/benbovy>`_.
126-
- Allow passing chunks in ``**kwargs`` form to :py:meth:`Dataset.chunk`, :py:meth:`DataArray.chunk`, and
133+
- Allow passing chunks in ``kwargs`` form to :py:meth:`Dataset.chunk`, :py:meth:`DataArray.chunk`, and
127134
:py:meth:`Variable.chunk`. (:pull:`6471`)
128135
By `Tom Nicholas <https://github.com/TomNicholas>`_.
129136
- Add :py:meth:`core.groupby.DatasetGroupBy.cumsum` and :py:meth:`core.groupby.DataArrayGroupBy.cumsum`.
@@ -133,7 +140,7 @@ New Features
133140
- Expose the ``inline_array`` kwarg from :py:func:`dask.array.from_array` in :py:func:`open_dataset`,
134141
:py:meth:`Dataset.chunk`, :py:meth:`DataArray.chunk`, and :py:meth:`Variable.chunk`. (:pull:`6471`)
135142
By `Tom Nicholas <https://github.com/TomNicholas>`_.
136-
- :py:meth:`xr.polyval` now supports :py:class:`Dataset` and :py:class:`DataArray` args of any shape,
143+
- :py:func:`polyval` now supports :py:class:`Dataset` and :py:class:`DataArray` args of any shape,
137144
is faster and requires less memory. (:pull:`6548`)
138145
By `Michael Niklas <https://github.com/headtr1ck>`_.
139146
- Improved overall typing.
@@ -166,7 +173,7 @@ Breaking changes
166173
zarr 2.5 2.8
167174
=============== ===== ====
168175

169-
- The Dataset and DataArray ``rename*`` methods do not implicitly add or drop
176+
- The Dataset and DataArray ``rename```` methods do not implicitly add or drop
170177
indexes. (:pull:`5692`).
171178
By `Benoît Bovy <https://github.com/benbovy>`_.
172179
- Many arguments like ``keep_attrs``, ``axis``, and ``skipna`` are now keyword
@@ -179,11 +186,6 @@ Breaking changes
179186
(:pull:`6548`)
180187
By `Michael Niklas <https://github.com/headtr1ck>`_.
181188

182-
183-
Deprecations
184-
~~~~~~~~~~~~
185-
186-
187189
Bug fixes
188190
~~~~~~~~~
189191

@@ -211,16 +213,16 @@ Bug fixes
211213
By `Stan West <https://github.com/stanwest>`_.
212214
- Fix bug in :py:func:`where` when passing non-xarray objects with ``keep_attrs=True``. (:issue:`6444`, :pull:`6461`)
213215
By `Sam Levang <https://github.com/slevang>`_.
214-
- Allow passing both ``other`` and ``drop=True`` arguments to ``xr.DataArray.where``
215-
and ``xr.Dataset.where`` (:pull:`6466`, :pull:`6467`).
216+
- Allow passing both ``other`` and ``drop=True`` arguments to :py:meth:`DataArray.where`
217+
and :py:meth:`Dataset.where` (:pull:`6466`, :pull:`6467`).
216218
By `Michael Delgado <https://github.com/delgadom>`_.
217219
- Ensure dtype encoding attributes are not added or modified on variables that contain datetime-like
218220
values prior to being passed to :py:func:`xarray.conventions.decode_cf_variable` (:issue:`6453`,
219221
:pull:`6489`).
220222
By `Spencer Clark <https://github.com/spencerkclark>`_.
221223
- Dark themes are now properly detected in Furo-themed Sphinx documents (:issue:`6500`, :pull:`6501`).
222224
By `Kevin Paul <https://github.com/kmpaul>`_.
223-
- :py:meth:`isel` with `drop=True` works as intended with scalar :py:class:`DataArray` indexers.
225+
- :py:meth:`Dataset.isel`, :py:meth:`DataArray.isel` with `drop=True` works as intended with scalar :py:class:`DataArray` indexers.
224226
(:issue:`6554`, :pull:`6579`)
225227
By `Michael Niklas <https://github.com/headtr1ck>`_.
226228
- Fixed silent overflow issue when decoding times encoded with 32-bit and below
@@ -236,18 +238,17 @@ Documentation
236238
sizes. In particular, correct the syntax and replace lists with tuples in the
237239
examples. (:issue:`6333`, :pull:`6334`)
238240
By `Stan West <https://github.com/stanwest>`_.
239-
- Mention that ``xr.DataArray.rename`` can rename coordinates.
241+
- Mention that :py:meth:`DataArray.rename` can rename coordinates.
240242
(:issue:`5458`, :pull:`6665`)
241243
By `Michael Niklas <https://github.com/headtr1ck>`_.
242-
243244
- Added examples to :py:meth:`Dataset.thin` and :py:meth:`DataArray.thin`
244245
By `Emma Marshall <https://github.com/e-marshall>`_.
245246

246247
Performance
247248
~~~~~~~~~~~
248249

249250
- GroupBy binary operations are now vectorized.
250-
Previously this involved looping over all groups. (:issue:`5804`,:pull:`6160`)
251+
Previously this involved looping over all groups. (:issue:`5804`, :pull:`6160`)
251252
By `Deepak Cherian <https://github.com/dcherian>`_.
252253
- Substantially improved GroupBy operations using `flox <https://flox.readthedocs.io/en/latest/>`_.
253254
This is auto-enabled when ``flox`` is installed. Use ``xr.set_options(use_flox=False)`` to use

0 commit comments

Comments
 (0)