@@ -16,33 +16,44 @@ What's New
16
16
17
17
.. _whats-new.2022.06.0 :
18
18
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,
21
36
22
37
New Features
23
38
~~~~~~~~~~~~
24
39
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.
27
42
(:pull: `6706 `)
28
43
By `Michael Niklas <https://github.com/headtr1ck >`_.
29
44
- Initial typing support for :py:meth: `groupby `, :py:meth: `rolling `, :py:meth: `rolling_exp `,
30
45
:py:meth: `coarsen `, :py:meth: `weighted `, :py:meth: `resample `,
31
46
(:pull: `6702 `)
32
47
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 `)
35
50
By `Tom White <https://github.com/tomwhite >`_.
36
51
37
- Deprecations
38
- ~~~~~~~~~~~~
39
-
40
-
41
52
Bug fixes
42
53
~~~~~~~~~
43
54
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 `.
46
57
(:issue: `6684 `)
47
58
By `Travis A. O'Brien <https://github.com/taobrienlbl >`_.
48
59
- Fix backend support of pydap versions <3.3.0 (:issue: `6648 `, :pull: `6656 `).
@@ -61,16 +72,12 @@ Bug fixes
61
72
(:issue: `6739 `, :pull: `6744 `)
62
73
By `Michael Niklas <https://github.com/headtr1ck >`_.
63
74
64
- Documentation
65
- ~~~~~~~~~~~~~
66
-
67
-
68
75
Internal Changes
69
76
~~~~~~~~~~~~~~~~
70
77
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.
74
81
(:pull: `6702 `)
75
82
76
83
.. _whats-new.2022.06.0rc0 :
@@ -123,7 +130,7 @@ New Features
123
130
elements which trigger summarization rather than full repr in (numpy) array
124
131
detailed views of the html repr (:pull: `6400 `).
125
132
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
127
134
:py:meth: `Variable.chunk `. (:pull: `6471 `)
128
135
By `Tom Nicholas <https://github.com/TomNicholas >`_.
129
136
- Add :py:meth: `core.groupby.DatasetGroupBy.cumsum ` and :py:meth: `core.groupby.DataArrayGroupBy.cumsum `.
@@ -133,7 +140,7 @@ New Features
133
140
- Expose the ``inline_array `` kwarg from :py:func: `dask.array.from_array ` in :py:func: `open_dataset `,
134
141
:py:meth: `Dataset.chunk `, :py:meth: `DataArray.chunk `, and :py:meth: `Variable.chunk `. (:pull: `6471 `)
135
142
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,
137
144
is faster and requires less memory. (:pull: `6548 `)
138
145
By `Michael Niklas <https://github.com/headtr1ck >`_.
139
146
- Improved overall typing.
@@ -166,7 +173,7 @@ Breaking changes
166
173
zarr 2.5 2.8
167
174
=============== ===== ====
168
175
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
170
177
indexes. (:pull: `5692 `).
171
178
By `Benoît Bovy <https://github.com/benbovy >`_.
172
179
- Many arguments like ``keep_attrs ``, ``axis ``, and ``skipna `` are now keyword
@@ -179,11 +186,6 @@ Breaking changes
179
186
(:pull: `6548 `)
180
187
By `Michael Niklas <https://github.com/headtr1ck >`_.
181
188
182
-
183
- Deprecations
184
- ~~~~~~~~~~~~
185
-
186
-
187
189
Bug fixes
188
190
~~~~~~~~~
189
191
@@ -211,16 +213,16 @@ Bug fixes
211
213
By `Stan West <https://github.com/stanwest >`_.
212
214
- Fix bug in :py:func: `where ` when passing non-xarray objects with ``keep_attrs=True ``. (:issue: `6444 `, :pull: `6461 `)
213
215
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 `).
216
218
By `Michael Delgado <https://github.com/delgadom >`_.
217
219
- Ensure dtype encoding attributes are not added or modified on variables that contain datetime-like
218
220
values prior to being passed to :py:func: `xarray.conventions.decode_cf_variable ` (:issue: `6453 `,
219
221
:pull: `6489 `).
220
222
By `Spencer Clark <https://github.com/spencerkclark >`_.
221
223
- Dark themes are now properly detected in Furo-themed Sphinx documents (:issue: `6500 `, :pull: `6501 `).
222
224
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.
224
226
(:issue: `6554 `, :pull: `6579 `)
225
227
By `Michael Niklas <https://github.com/headtr1ck >`_.
226
228
- Fixed silent overflow issue when decoding times encoded with 32-bit and below
@@ -236,18 +238,17 @@ Documentation
236
238
sizes. In particular, correct the syntax and replace lists with tuples in the
237
239
examples. (:issue: `6333 `, :pull: `6334 `)
238
240
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.
240
242
(:issue: `5458 `, :pull: `6665 `)
241
243
By `Michael Niklas <https://github.com/headtr1ck >`_.
242
-
243
244
- Added examples to :py:meth: `Dataset.thin ` and :py:meth: `DataArray.thin `
244
245
By `Emma Marshall <https://github.com/e-marshall >`_.
245
246
246
247
Performance
247
248
~~~~~~~~~~~
248
249
249
250
- 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 `)
251
252
By `Deepak Cherian <https://github.com/dcherian >`_.
252
253
- Substantially improved GroupBy operations using `flox <https://flox.readthedocs.io/en/latest/ >`_.
253
254
This is auto-enabled when ``flox `` is installed. Use ``xr.set_options(use_flox=False) `` to use
0 commit comments