@@ -14,32 +14,77 @@ What's New
14
14
15
15
np.random.seed(123456 )
16
16
17
- .. _whats-new.2022.06 .0 :
17
+ .. _whats-new.2022.07 .0 :
18
18
19
- v2022.06 .0 (unreleased)
19
+ v2022.07 .0 (unreleased)
20
20
-----------------------
21
21
22
22
New Features
23
23
~~~~~~~~~~~~
24
24
25
- - Add :py:meth: `Dataset.dtypes `, :py:meth: `DatasetCoordinates.dtypes `,
26
- :py:meth: `DataArrayCoordinates.dtypes ` properties: Mapping from variable names to dtypes.
25
+
26
+ Breaking changes
27
+ ~~~~~~~~~~~~~~~~
28
+
29
+
30
+ Deprecations
31
+ ~~~~~~~~~~~~
32
+
33
+
34
+ Bug fixes
35
+ ~~~~~~~~~
36
+
37
+ - :py:attr: `DataArray.nbytes ` now uses the ``nbytes `` property of the underlying array if available.
38
+ By `Max Jones <https://github.com/maxrjones >`_.
39
+
40
+ Documentation
41
+ ~~~~~~~~~~~~~
42
+
43
+
44
+ Internal Changes
45
+ ~~~~~~~~~~~~~~~~
46
+
47
+
48
+ .. _whats-new.2022.06.0 :
49
+
50
+ v2022.06.0 (July 21, 2022)
51
+ --------------------------
52
+
53
+ This release brings a number of bug fixes and improvements, most notably a major internal
54
+ refactor of the indexing functionality, the use of `flox `_ in ``groupby `` operations,
55
+ and experimental support for the new Python `Array API standard <https://data-apis.org/array-api/latest/ >`_.
56
+ It also stops testing support for the abandoned PyNIO.
57
+
58
+ Much effort has been made to preserve backwards compatibility as part of the indexing refactor.
59
+ We are aware of one `unfixed issue <https://github.com/pydata/xarray/issues/6607 >`_.
60
+
61
+ Please also see the `whats-new.2022.06.0rc0 `_ for a full list of changes.
62
+
63
+ Many thanks to our 18 contributors:
64
+ Bane Sullivan, Deepak Cherian, Dimitri Papadopoulos Orfanos, Emma Marshall, Hauke Schulz, Illviljan,
65
+ Julia Signell, Justus Magin, Keewis, Mathias Hauser, Michael Delgado, Mick, Pierre Manchon, Ray Bell,
66
+ Spencer Clark, Stefaan Lippens, Tom White, Travis A. O'Brien,
67
+
68
+ New Features
69
+ ~~~~~~~~~~~~
70
+
71
+ - Add :py:attr: `Dataset.dtypes `, :py:attr: `core.coordinates.DatasetCoordinates.dtypes `,
72
+ :py:attr: `core.coordinates.DataArrayCoordinates.dtypes ` properties: Mapping from variable names to dtypes.
27
73
(:pull: `6706 `)
28
74
By `Michael Niklas <https://github.com/headtr1ck >`_.
29
75
- Initial typing support for :py:meth: `groupby `, :py:meth: `rolling `, :py:meth: `rolling_exp `,
30
76
:py:meth: `coarsen `, :py:meth: `weighted `, :py:meth: `resample `,
31
77
(:pull: `6702 `)
32
78
By `Michael Niklas <https://github.com/headtr1ck >`_.
33
-
34
- Deprecations
35
- ~~~~~~~~~~~~
36
-
79
+ - Experimental support for wrapping any array type that conforms to the python
80
+ `array api standard <https://data-apis.org/array-api/latest/ >`_. (:pull: `6804 `)
81
+ By `Tom White <https://github.com/tomwhite >`_.
37
82
38
83
Bug fixes
39
84
~~~~~~~~~
40
85
41
- - :py:meth: `xarray. save_mfdataset ` now passes ``**kwargs `` on to `` to_netcdf ` `,
42
- allowing the ``encoding `` and ``unlimited_dims `` options with `` save_mfdataset ` `.
86
+ - :py:meth: `save_mfdataset ` now passes ``**kwargs `` on to :py:meth: ` Dataset. to_netcdf `,
87
+ allowing the ``encoding `` and ``unlimited_dims `` options with :py:meth: ` save_mfdataset `.
43
88
(:issue: `6684 `)
44
89
By `Travis A. O'Brien <https://github.com/taobrienlbl >`_.
45
90
- Fix backend support of pydap versions <3.3.0 (:issue: `6648 `, :pull: `6656 `).
@@ -58,16 +103,12 @@ Bug fixes
58
103
(:issue: `6739 `, :pull: `6744 `)
59
104
By `Michael Niklas <https://github.com/headtr1ck >`_.
60
105
61
- Documentation
62
- ~~~~~~~~~~~~~
63
-
64
-
65
106
Internal Changes
66
107
~~~~~~~~~~~~~~~~
67
108
68
- - :py:meth: ` xarray.core.groupby `, :py:meth: ` xarray.core.rolling `,
69
- :py:meth: ` xarray.core.rolling_exp `, :py:meth: ` xarray.core.weighted `
70
- and :py:meth: ` xarray.core.resample ` modules are no longer imported by default.
109
+ - `` xarray.core.groupby ``, `` xarray.core.rolling ` `,
110
+ `` xarray.core.rolling_exp ``, `` xarray.core.weighted ` `
111
+ and `` xarray.core.resample ` ` modules are no longer imported by default.
71
112
(:pull: `6702 `)
72
113
73
114
.. _whats-new.2022.06.0rc0 :
@@ -120,13 +161,17 @@ New Features
120
161
elements which trigger summarization rather than full repr in (numpy) array
121
162
detailed views of the html repr (:pull: `6400 `).
122
163
By `Benoît Bovy <https://github.com/benbovy >`_.
123
- - Allow passing chunks in ``** kwargs `` form to :py:meth: `Dataset.chunk `, :py:meth: `DataArray.chunk `, and
164
+ - Allow passing chunks in ``kwargs `` form to :py:meth: `Dataset.chunk `, :py:meth: `DataArray.chunk `, and
124
165
:py:meth: `Variable.chunk `. (:pull: `6471 `)
125
166
By `Tom Nicholas <https://github.com/TomNicholas >`_.
167
+ - Add :py:meth: `core.groupby.DatasetGroupBy.cumsum ` and :py:meth: `core.groupby.DataArrayGroupBy.cumsum `.
168
+ By `Vladislav Skripniuk <https://github.com/VladSkripniuk >`_ and `Deepak Cherian <https://github.com/dcherian >`_. (:pull: `3147 `, :pull: `6525 `, :issue: `3141 `)
169
+ - Expose `inline_array ` kwarg from `dask.array.from_array ` in :py:func: `open_dataset `, :py:meth: `Dataset.chunk `,
170
+ :py:meth: `DataArray.chunk `, and :py:meth: `Variable.chunk `. (:pull: `6471 `)
126
171
- Expose the ``inline_array `` kwarg from :py:func: `dask.array.from_array ` in :py:func: `open_dataset `,
127
172
:py:meth: `Dataset.chunk `, :py:meth: `DataArray.chunk `, and :py:meth: `Variable.chunk `. (:pull: `6471 `)
128
173
By `Tom Nicholas <https://github.com/TomNicholas >`_.
129
- - :py:meth: ` xr. polyval ` now supports :py:class: `Dataset ` and :py:class: `DataArray ` args of any shape,
174
+ - :py:func: ` polyval ` now supports :py:class: `Dataset ` and :py:class: `DataArray ` args of any shape,
130
175
is faster and requires less memory. (:pull: `6548 `)
131
176
By `Michael Niklas <https://github.com/headtr1ck >`_.
132
177
- Improved overall typing.
@@ -159,7 +204,7 @@ Breaking changes
159
204
zarr 2.5 2.8
160
205
=============== ===== ====
161
206
162
- - The Dataset and DataArray ``rename* `` methods do not implicitly add or drop
207
+ - The Dataset and DataArray ``rename`` `` methods do not implicitly add or drop
163
208
indexes. (:pull: `5692 `).
164
209
By `Benoît Bovy <https://github.com/benbovy >`_.
165
210
- Many arguments like ``keep_attrs ``, ``axis ``, and ``skipna `` are now keyword
@@ -172,11 +217,6 @@ Breaking changes
172
217
(:pull: `6548 `)
173
218
By `Michael Niklas <https://github.com/headtr1ck >`_.
174
219
175
-
176
- Deprecations
177
- ~~~~~~~~~~~~
178
-
179
-
180
220
Bug fixes
181
221
~~~~~~~~~
182
222
@@ -204,16 +244,16 @@ Bug fixes
204
244
By `Stan West <https://github.com/stanwest >`_.
205
245
- Fix bug in :py:func: `where ` when passing non-xarray objects with ``keep_attrs=True ``. (:issue: `6444 `, :pull: `6461 `)
206
246
By `Sam Levang <https://github.com/slevang >`_.
207
- - Allow passing both ``other `` and ``drop=True `` arguments to `` xr. DataArray.where` `
208
- and `` xr. Dataset.where` ` (:pull: `6466 `, :pull: `6467 `).
247
+ - Allow passing both ``other `` and ``drop=True `` arguments to :py:meth: ` DataArray.where `
248
+ and :py:meth: ` Dataset.where ` (:pull: `6466 `, :pull: `6467 `).
209
249
By `Michael Delgado <https://github.com/delgadom >`_.
210
250
- Ensure dtype encoding attributes are not added or modified on variables that contain datetime-like
211
251
values prior to being passed to :py:func: `xarray.conventions.decode_cf_variable ` (:issue: `6453 `,
212
252
:pull: `6489 `).
213
253
By `Spencer Clark <https://github.com/spencerkclark >`_.
214
254
- Dark themes are now properly detected in Furo-themed Sphinx documents (:issue: `6500 `, :pull: `6501 `).
215
255
By `Kevin Paul <https://github.com/kmpaul >`_.
216
- - :py:meth: `isel ` with `drop=True ` works as intended with scalar :py:class: `DataArray ` indexers.
256
+ - :py:meth: `Dataset.isel `, :py:meth: ` DataArray. isel ` with `drop=True ` works as intended with scalar :py:class: `DataArray ` indexers.
217
257
(:issue: `6554 `, :pull: `6579 `)
218
258
By `Michael Niklas <https://github.com/headtr1ck >`_.
219
259
- Fixed silent overflow issue when decoding times encoded with 32-bit and below
@@ -229,15 +269,17 @@ Documentation
229
269
sizes. In particular, correct the syntax and replace lists with tuples in the
230
270
examples. (:issue: `6333 `, :pull: `6334 `)
231
271
By `Stan West <https://github.com/stanwest >`_.
232
-
272
+ - Mention that :py:meth: `DataArray.rename ` can rename coordinates.
273
+ (:issue: `5458 `, :pull: `6665 `)
274
+ By `Michael Niklas <https://github.com/headtr1ck >`_.
233
275
- Added examples to :py:meth: `Dataset.thin ` and :py:meth: `DataArray.thin `
234
276
By `Emma Marshall <https://github.com/e-marshall >`_.
235
277
236
278
Performance
237
279
~~~~~~~~~~~
238
280
239
281
- GroupBy binary operations are now vectorized.
240
- Previously this involved looping over all groups. (:issue: `5804 `,:pull: `6160 `)
282
+ Previously this involved looping over all groups. (:issue: `5804 `, :pull: `6160 `)
241
283
By `Deepak Cherian <https://github.com/dcherian >`_.
242
284
- Substantially improved GroupBy operations using `flox <https://flox.readthedocs.io/en/latest/ >`_.
243
285
This is auto-enabled when ``flox `` is installed. Use ``xr.set_options(use_flox=False) `` to use
0 commit comments