You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- remove deprecated ``autoclose`` kwargs from :py:func:`open_dataset` (:pull:`4725`).
68
-
By `Aureliana Barghini <https://github.com/aurghs>`_.
69
76
- As a result of :pull:`4911` the output from calling :py:meth:`DataArray.sum`
70
77
or :py:meth:`DataArray.prod` on an integer array with ``skipna=True`` and a
71
78
non-None value for ``min_count`` will now be a float array rather than an
@@ -79,75 +86,87 @@ Deprecations
79
86
For now using ``dim`` issues a ``FutureWarning``. It will be removed in
80
87
version 0.19.0 (:pull:`3993`).
81
88
By `Tom Nicholas <https://github.com/TomNicholas>`_.
89
+
- Deprecated ``autoclose`` kwargs from :py:func:`open_dataset` are removed (:pull:`4725`).
90
+
By `Aureliana Barghini <https://github.com/aurghs>`_.
82
91
- the return value of :py:meth:`Dataset.update` is being deprecated to make it work more
83
92
like :py:meth:`dict.update`. It will be removed in version 0.19.0 (:pull:`4932`).
84
93
By `Justus Magin <https://github.com/keewis>`_.
85
94
86
-
87
95
New Features
88
96
~~~~~~~~~~~~
89
-
- Xarray now leverages updates as of cftime version 1.4.1, which enable exact I/O
90
-
roundtripping of ``cftime.datetime`` objects (:pull:`4758`).
91
-
By `Spencer Clark <https://github.com/spencerkclark>`_.
92
-
- Most rolling operations use significantly less memory. (:issue:`4325`).
93
-
By `Deepak Cherian <https://github.com/dcherian>`_.
94
97
- :py:meth:`~xarray.cftime_range` and :py:meth:`DataArray.resample` now support
95
98
millisecond (``"L"`` or ``"ms"``) and microsecond (``"U"`` or ``"us"``) frequencies
96
99
for ``cftime.datetime`` coordinates (:issue:`4097`, :pull:`4758`).
97
100
By `Spencer Clark <https://github.com/spencerkclark>`_.
98
101
- Significantly higher ``unstack`` performance on numpy-backed arrays which
99
-
contain missing values; 8x faster in our benchmark, and 2x faster than pandas.
100
-
(:pull:`4746`);
102
+
contain missing values; 8x faster than previous versions in our benchmark, and
103
+
now 2x faster than pandas (:pull:`4746`).
101
104
By `Maximilian Roos <https://github.com/max-sixty>`_.
102
105
- Add :py:meth:`Dataset.plot.quiver` for quiver plots with :py:class:`Dataset` variables.
103
106
By `Deepak Cherian <https://github.com/dcherian>`_.
104
-
- add ``"drop_conflicts"`` to the strategies supported by the ``combine_attrs`` kwarg
107
+
- Add ``"drop_conflicts"`` to the strategies supported by the ``combine_attrs`` kwarg
105
108
(:issue:`4749`, :pull:`4827`).
106
109
By `Justus Magin <https://github.com/keewis>`_.
107
-
- :py:meth:`DataArray.swap_dims` & :py:meth:`Dataset.swap_dims` now accept dims
108
-
in the form of kwargs as well as a dict, like most similar methods.
109
-
By `Maximilian Roos <https://github.com/max-sixty>`_.
110
110
- Allow installing from git archives (:pull:`4897`).
111
111
By `Justus Magin <https://github.com/keewis>`_.
112
-
113
-
- :py:func:`open_dataset` and :py:func:`open_mfdataset` now accept ``fsspec`` URLs
114
-
(including globs for the latter) for ``engine="zarr"``, and so allow reading from
115
-
many remote and other file systems (:pull:`4461`)
116
-
By `Martin Durant <https://github.com/martindurant>`_
117
112
- :py:class:`DataArrayCoarsen` and :py:class:`DatasetCoarsen` now implement a
118
113
``reduce`` method, enabling coarsening operations with custom reduction
119
114
functions (:issue:`3741`, :pull:`4939`). By `Spencer Clark
120
115
<https://github.com/spencerkclark>`_.
116
+
- Most rolling operations use significantly less memory. (:issue:`4325`).
117
+
By `Deepak Cherian <https://github.com/dcherian>`_.
118
+
- Add :py:meth:`Dataset.drop_isel` and :py:meth:`DataArray.drop_isel`
119
+
(:issue:`4658`, :pull:`4819`).
120
+
By `Daniel Mesejo <https://github.com/mesejo>`_.
121
+
- Xarray now leverages updates as of cftime version 1.4.1, which enable exact I/O
122
+
roundtripping of ``cftime.datetime`` objects (:pull:`4758`).
123
+
By `Spencer Clark <https://github.com/spencerkclark>`_.
124
+
- :py:func:`open_dataset` and :py:func:`open_mfdataset` now accept ``fsspec`` URLs
125
+
(including globs for the latter) for ``engine="zarr"``, and so allow reading from
126
+
many remote and other file systems (:pull:`4461`)
127
+
By `Martin Durant <https://github.com/martindurant>`_
128
+
- :py:meth:`DataArray.swap_dims` & :py:meth:`Dataset.swap_dims` now accept dims
129
+
in the form of kwargs as well as a dict, like most similar methods.
130
+
By `Maximilian Roos <https://github.com/max-sixty>`_.
121
131
122
132
Bug fixes
123
133
~~~~~~~~~
124
134
- Use specific type checks in
125
135
:py:func:`~xarray.core.variable.as_compatible_data` instead of blanket
126
136
access to ``values`` attribute (:issue:`2097`)
127
137
By `Yunus Sevinchan <https://github.com/blsqr>`_.
128
-
- :py:meth:`DataArray.resample` and :py:meth:`Dataset.resample` do not trigger computations anymore if :py:meth:`Dataset.weighted` or :py:meth:`DataArray.weighted` are applied (:issue:`4625`, :pull:`4668`). By `Julius Busecke <https://github.com/jbusecke>`_.
129
-
- :py:func:`merge` with ``combine_attrs='override'`` makes a copy of the attrs (:issue:`4627`).
130
-
- By default, when possible, xarray will now always use values of type ``int64`` when encoding
131
-
and decoding ``numpy.datetime64[ns]`` datetimes. This ensures that maximum
132
-
precision and accuracy are maintained in the round-tripping process
133
-
(:issue:`4045`, :pull:`4684`). It also enables encoding and decoding standard calendar
134
-
dates with time units of nanoseconds (:pull:`4400`). By `Spencer Clark
135
-
<https://github.com/spencerkclark>`_ and `Mark Harfouche <http://github.com/hmaarrfk>`_.
138
+
- :py:meth:`DataArray.resample` and :py:meth:`Dataset.resample` do not trigger
139
+
computations anymore if :py:meth:`Dataset.weighted` or
140
+
:py:meth:`DataArray.weighted` are applied (:issue:`4625`, :pull:`4668`). By
141
+
`Julius Busecke <https://github.com/jbusecke>`_.
142
+
- :py:func:`merge` with ``combine_attrs='override'`` makes a copy of the attrs
143
+
(:issue:`4627`).
144
+
- By default, when possible, xarray will now always use values of
145
+
type ``int64`` when encoding and decoding ``numpy.datetime64[ns]`` datetimes. This
146
+
ensures that maximum precision and accuracy are maintained in the round-tripping
147
+
process (:issue:`4045`, :pull:`4684`). It also enables encoding and decoding standard
148
+
calendar dates with time units of nanoseconds (:pull:`4400`).
149
+
By `Spencer Clark <https://github.com/spencerkclark>`_ and `Mark Harfouche
150
+
<http://github.com/hmaarrfk>`_.
136
151
- :py:meth:`DataArray.astype`, :py:meth:`Dataset.astype` and :py:meth:`Variable.astype` support
137
152
the ``order`` and ``subok`` parameters again. This fixes a regression introduced in version 0.16.1
138
153
(:issue:`4644`, :pull:`4683`).
139
154
By `Richard Kleijn <https://github.com/rhkleijn>`_ .
140
155
- Remove dictionary unpacking when using ``.loc`` to avoid collision with ``.sel`` parameters (:pull:`4695`).
141
-
By `Anderson Banihirwe <https://github.com/andersy005>`_
156
+
By `Anderson Banihirwe <https://github.com/andersy005>`_.
142
157
- Fix the legend created by :py:meth:`Dataset.plot.scatter` (:issue:`4641`, :pull:`4723`).
143
158
By `Justus Magin <https://github.com/keewis>`_.
144
-
- Fix a crash in orthogonal indexing on geographic coordinates with ``engine='cfgrib'`` (:issue:`4733` :pull:`4737`).
145
-
By `Alessandro Amici <https://github.com/alexamici>`_
159
+
- Fix a crash in orthogonal indexing on geographic coordinates with ``engine='cfgrib'``
160
+
(:issue:`4733` :pull:`4737`).
161
+
By `Alessandro Amici <https://github.com/alexamici>`_.
146
162
- Coordinates with dtype ``str`` or ``bytes`` now retain their dtype on many operations,
147
163
e.g. ``reindex``, ``align``, ``concat``, ``assign``, previously they were cast to an object dtype
148
-
(:issue:`2658` and :issue:`4543`) by `Mathias Hauser <https://github.com/mathause>`_.
149
-
- Limit number of data rows when printing large datasets. (:issue:`4736`, :pull:`4750`). By `Jimmy Westling <https://github.com/illviljan>`_.
150
-
- Add ``missing_dims`` parameter to transpose (:issue:`4647`, :pull:`4767`). By `Daniel Mesejo <https://github.com/mesejo>`_.
164
+
(:issue:`2658` and :issue:`4543`).
165
+
By `Mathias Hauser <https://github.com/mathause>`_.
166
+
- Limit number of data rows when printing large datasets. (:issue:`4736`, :pull:`4750`).
167
+
By `Jimmy Westling <https://github.com/illviljan>`_.
168
+
- Add ``missing_dims`` parameter to transpose (:issue:`4647`, :pull:`4767`).
169
+
By `Daniel Mesejo <https://github.com/mesejo>`_.
151
170
- Resolve intervals before appending other metadata to labels when plotting (:issue:`4322`, :pull:`4794`).
152
171
By `Justus Magin <https://github.com/keewis>`_.
153
172
- Fix regression when decoding a variable with a ``scale_factor`` and ``add_offset`` given
@@ -158,8 +177,9 @@ Bug fixes
158
177
- Raise DeprecationWarning when trying to typecast a tuple containing a :py:class:`DataArray`.
159
178
User now prompted to first call `.data` on it (:issue:`4483`).
160
179
By `Chun Ho Chow <https://github.com/chunhochow>`_.
161
-
- Add :py:meth:`Dataset.drop_isel` and :py:meth:`DataArray.drop_isel` (:issue:`4658`, :pull:`4819`). By `Daniel Mesejo <https://github.com/mesejo>`_.
162
-
- Ensure that :py:meth:`Dataset.interp` raises ``ValueError`` when interpolating outside coordinate range and ``bounds_error=True`` (:issue:`4854`, :pull:`4855`).
180
+
- Ensure that :py:meth:`Dataset.interp` raises ``ValueError`` when interpolating
181
+
outside coordinate range and ``bounds_error=True`` (:issue:`4854`,
182
+
:pull:`4855`).
163
183
By `Leif Denby <https://github.com/leifdenby>`_.
164
184
- Fix time encoding bug associated with using cftime versions greater than
165
185
1.4.0 with xarray (:issue:`4870`, :pull:`4871`). By `Spencer Clark <https://github.com/spencerkclark>`_.
@@ -177,15 +197,17 @@ Bug fixes
177
197
178
198
Documentation
179
199
~~~~~~~~~~~~~
180
-
- add information about requirements for accessor classes (:issue:`2788`, :pull:`4657`).
200
+
- Add information about requirements for accessor classes (:issue:`2788`, :pull:`4657`).
181
201
By `Justus Magin <https://github.com/keewis>`_.
182
-
- start a list of external I/O integrating with ``xarray`` (:issue:`683`, :pull:`4566`).
202
+
- Start a list of external I/O integrating with ``xarray`` (:issue:`683`, :pull:`4566`).
183
203
By `Justus Magin <https://github.com/keewis>`_.
184
-
- add concat examples and improve combining documentation (:issue:`4620`, :pull:`4645`).
204
+
- Add concat examples and improve combining documentation (:issue:`4620`, :pull:`4645`).
185
205
By `Ray Bell <https://github.com/raybellwaves>`_ and
186
206
`Justus Magin <https://github.com/keewis>`_.
187
207
- explicitly mention that :py:meth:`Dataset.update` updates inplace (:issue:`2951`, :pull:`4932`).
188
208
By `Justus Magin <https://github.com/keewis>`_.
209
+
- Added docs on vectorized indexing (:pull:`4711`).
210
+
By `Eric Keenan <https://github.com/EricKeenan>`_.
189
211
190
212
Internal Changes
191
213
~~~~~~~~~~~~~~~~
@@ -197,30 +219,49 @@ Internal Changes
197
219
- Run the tests in parallel using pytest-xdist (:pull:`4694`).
198
220
199
221
By `Justus Magin <https://github.com/keewis>`_ and `Mathias Hauser <https://github.com/mathause>`_.
200
-
222
+
- Use ``pyproject.toml`` instead of the ``setup_requires`` option for
223
+
``setuptools`` (:pull:`4897`).
224
+
By `Justus Magin <https://github.com/keewis>`_.
201
225
- Replace all usages of ``assert x.identical(y)`` with ``assert_identical(x, y)``
202
-
for clearer error messages.
203
-
(:pull:`4752`);
226
+
for clearer error messages (:pull:`4752`).
204
227
By `Maximilian Roos <https://github.com/max-sixty>`_.
205
-
- Speed up attribute style access (e.g. ``ds.somevar`` instead of ``ds["somevar"]``) and tab completion
206
-
in ipython (:issue:`4741`, :pull:`4742`). By `Richard Kleijn <https://github.com/rhkleijn>`_.
207
-
- Added the ``set_close`` method to ``Dataset`` and ``DataArray`` for beckends to specify how to voluntary release
208
-
all resources. (:pull:`#4809`), By `Alessandro Amici <https://github.com/alexamici>`_.
209
-
- Update type hints to work with numpy v1.20 (:pull:`4878`). By `Mathias Hauser <https://github.com/mathause>`_.
228
+
- Speed up attribute style access (e.g. ``ds.somevar`` instead of ``ds["somevar"]``) and
229
+
tab completion in IPython (:issue:`4741`, :pull:`4742`).
230
+
By `Richard Kleijn <https://github.com/rhkleijn>`_.
231
+
- Added the ``set_close`` method to ``Dataset`` and ``DataArray`` for backends
232
+
to specify how to voluntary release all resources. (:pull:`#4809`)
233
+
By `Alessandro Amici <https://github.com/alexamici>`_.
234
+
- Update type hints to work with numpy v1.20 (:pull:`4878`).
235
+
By `Mathias Hauser <https://github.com/mathause>`_.
210
236
- Ensure warnings cannot be turned into exceptions in :py:func:`testing.assert_equal` and
211
-
the other ``assert_*`` functions (:pull:`4864`). By `Mathias Hauser <https://github.com/mathause>`_.
212
-
- Performance improvement when constructing DataArrays. Significantly speeds up repr for Datasets with large number of variables.
213
-
By `Deepak Cherian <https://github.com/dcherian>`_
237
+
the other ``assert_*`` functions (:pull:`4864`).
238
+
By `Mathias Hauser <https://github.com/mathause>`_.
239
+
- Performance improvement when constructing DataArrays. Significantly speeds up
240
+
repr for Datasets with large number of variables.
241
+
By `Deepak Cherian <https://github.com/dcherian>`_.
214
242
215
243
.. _whats-new.0.16.2:
216
244
217
245
v0.16.2 (30 Nov 2020)
218
246
---------------------
219
247
220
-
This release brings the ability to write to limited regions of ``zarr`` files, open zarr files with :py:func:`open_dataset` and :py:func:`open_mfdataset`, increased support for propagating ``attrs`` using the ``keep_attrs`` flag, as well as numerous bugfixes and documentation improvements.
221
-
222
-
Many thanks to the 31 contributors who contributed to this release:
223
-
Aaron Spring, Akio Taniguchi, Aleksandar Jelenak, alexamici, Alexandre Poux, Anderson Banihirwe, Andrew Pauling, Ashwin Vishnu, aurghs, Brian Ward, Caleb, crusaderky, Dan Nowacki, darikg, David Brochart, David Huard, Deepak Cherian, Dion Häfner, Gerardo Rivera, Gerrit Holl, Illviljan, inakleinbottle, Jacob Tomlinson, James A. Bednar, jenssss, Joe Hamman, johnomotani, Joris Van den Bossche, Julia Kent, Julius Busecke, Kai Mühlbauer, keewis, Keisuke Fujii, Kyle Cranmer, Luke Volpatti, Mathias Hauser, Maximilian Roos, Michaël Defferrard, Michal Baumgartner, Nick R. Papior, Pascal Bourgault, Peter Hausamann, PGijsbers, Ray Bell, Romain Martinez, rpgoldman, Russell Manser, Sahid Velji, Samnan Rahee, Sander, Spencer Clark, Stephan Hoyer, Thomas Zilio, Tobias Kölling, Tom Augspurger, Wei Ji, Yash Saboo, Zeb Nicholls,
248
+
This release brings the ability to write to limited regions of ``zarr`` files,
249
+
open zarr files with :py:func:`open_dataset` and :py:func:`open_mfdataset`,
250
+
increased support for propagating ``attrs`` using the ``keep_attrs`` flag, as
251
+
well as numerous bugfixes and documentation improvements.
252
+
253
+
Many thanks to the 31 contributors who contributed to this release: Aaron
254
+
Spring, Akio Taniguchi, Aleksandar Jelenak, alexamici, Alexandre Poux, Anderson
255
+
Banihirwe, Andrew Pauling, Ashwin Vishnu, aurghs, Brian Ward, Caleb, crusaderky,
256
+
Dan Nowacki, darikg, David Brochart, David Huard, Deepak Cherian, Dion Häfner,
257
+
Gerardo Rivera, Gerrit Holl, Illviljan, inakleinbottle, Jacob Tomlinson, James
258
+
A. Bednar, jenssss, Joe Hamman, johnomotani, Joris Van den Bossche, Julia Kent,
259
+
Julius Busecke, Kai Mühlbauer, keewis, Keisuke Fujii, Kyle Cranmer, Luke
260
+
Volpatti, Mathias Hauser, Maximilian Roos, Michaël Defferrard, Michal
261
+
Baumgartner, Nick R. Papior, Pascal Bourgault, Peter Hausamann, PGijsbers, Ray
262
+
Bell, Romain Martinez, rpgoldman, Russell Manser, Sahid Velji, Samnan Rahee,
263
+
Sander, Spencer Clark, Stephan Hoyer, Thomas Zilio, Tobias Kölling, Tom
0 commit comments