@@ -21,30 +21,30 @@ v0.14.1 (unreleased)
21
21
Breaking changes
22
22
~~~~~~~~~~~~~~~~
23
23
24
- - Broken compatibility with cftime < 1.0.3.
25
- By `Deepak Cherian <https://github.com/dcherian >`_.
24
+ - Broken compatibility with ``cftime < 1.0.3 `` . By `Deepak Cherian <https://github.com/dcherian >`_.
26
25
27
- .. note ::
26
+ .. warning ::
28
27
29
28
cftime version 1.0.4 is broken
30
29
(`cftime/126 <https://github.com/Unidata/cftime/issues/126 >`_);
31
30
please use version 1.0.4.2 instead.
32
31
33
- - All leftover support for dates from non-standard calendars through netcdftime, the
32
+ - All leftover support for dates from non-standard calendars through `` netcdftime `` , the
34
33
module included in versions of netCDF4 prior to 1.4 that eventually became the
35
- cftime package, has been removed in favor of relying solely on the standalone
36
- cftime package (:pull: `3450 `).
34
+ ` cftime < https://github.com/Unidata/cftime/ >`_ package, has been removed in favor of relying solely on
35
+ the standalone `` cftime `` package (:pull: `3450 `).
37
36
By `Spencer Clark <https://github.com/spencerkclark >`_.
38
37
39
38
New Features
40
39
~~~~~~~~~~~~
41
40
42
- - Added the ``max_gap `` kwarg to :py:meth: `~xarray. DataArray.interpolate_na ` and
43
- :py:meth: `~xarray. Dataset.interpolate_na `. This controls the maximum size of the data
41
+ - Added the ``max_gap `` kwarg to :py:meth: `DataArray.interpolate_na ` and
42
+ :py:meth: `Dataset.interpolate_na `. This controls the maximum size of the data
44
43
gap that will be filled by interpolation. By `Deepak Cherian <https://github.com/dcherian >`_.
45
44
- :py:meth: `Dataset.drop_sel ` & :py:meth: `DataArray.drop_sel ` have been added for dropping labels.
46
45
:py:meth: `Dataset.drop_vars ` & :py:meth: `DataArray.drop_vars ` have been added for
47
- dropping variables (including coordinates). The existing ``drop `` methods remain as a backward compatible
46
+ dropping variables (including coordinates). The existing :py:meth: `Dataset.drop ` &
47
+ :py:meth: `DataArray.drop ` methods remain as a backward compatible
48
48
option for dropping either labels or variables, but using the more specific methods is encouraged.
49
49
(:pull: `3475 `)
50
50
By `Maximilian Roos <https://github.com/max-sixty >`_
@@ -55,71 +55,71 @@ New Features
55
55
methods is encouraged.
56
56
(:pull: `3459 `)
57
57
By `Maximilian Roos <https://github.com/max-sixty >`_
58
- - :py:meth: `Dataset.transpose ` and :py:meth: `DataArray.transpose ` now support an ellipsis (`... `)
58
+ - :py:meth: `Dataset.transpose ` and :py:meth: `DataArray.transpose ` now support an ellipsis (`` ... ` `)
59
59
to represent all 'other' dimensions. For example, to move one dimension to the front,
60
- use `.transpose('x', ...) `. (:pull: `3421 `)
60
+ use `` .transpose('x', ...) ` `. (:pull: `3421 `)
61
61
By `Maximilian Roos <https://github.com/max-sixty >`_
62
- - Changed `xr.ALL_DIMS ` to equal python's `Ellipsis ` (`... `), and changed internal usages to use
63
- `... ` directly. As before, you can use this to instruct a `groupby ` operation
64
- to reduce over all dimensions. While we have no plans to remove `xr.ALL_DIMS `, we suggest
65
- using `... `. (:pull: `3418 `)
62
+ - Changed `` xr.ALL_DIMS `` to equal python's `` Ellipsis `` (`` ... ` `), and changed internal usages to use
63
+ `` ... `` directly. As before, you can use this to instruct a `` groupby ` ` operation
64
+ to reduce over all dimensions. While we have no plans to remove `` xr.ALL_DIMS ` `, we suggest
65
+ using `` ... ` `. (:pull: `3418 `)
66
66
By `Maximilian Roos <https://github.com/max-sixty >`_
67
- - :py:func: `~ xarray.dot `, and :py:func: ` ~xarray. DataArray.dot ` now support the
68
- `dims=... ` option to sum over the union of dimensions of all input arrays
67
+ - :py:func: `xarray.dot `, and :py:meth: ` DataArray.dot ` now support the
68
+ `` dims=... ` ` option to sum over the union of dimensions of all input arrays
69
69
(:issue: `3423 `) by `Mathias Hauser <https://github.com/mathause >`_.
70
70
- Added new :py:meth: `Dataset._repr_html_ ` and :py:meth: `DataArray._repr_html_ ` to improve
71
- representation of objects in jupyter . By default this feature is turned off
72
- for now. Enable it with :py:meth: ` xarray.set_options(display_style="html") `.
71
+ representation of objects in Jupyter . By default this feature is turned off
72
+ for now. Enable it with `` xarray.set_options(display_style="html") ` `.
73
73
(:pull: `3425 `) by `Benoit Bovy <https://github.com/benbovy >`_ and
74
74
`Julia Signell <https://github.com/jsignell >`_.
75
75
- Implement `dask deterministic hashing
76
76
<https://docs.dask.org/en/latest/custom-collections.html#deterministic-hashing> `_
77
77
for xarray objects. Note that xarray objects with a dask.array backend already used
78
78
deterministic hashing in previous releases; this change implements it when whole
79
- xarray objects are embedded in a dask graph, e.g. when :meth: `DataArray.map ` is
79
+ xarray objects are embedded in a dask graph, e.g. when :py: meth: `DataArray.map ` is
80
80
invoked. (:issue: `3378 `, :pull: `3446 `, :pull: `3515 `)
81
81
By `Deepak Cherian <https://github.com/dcherian >`_ and
82
82
`Guido Imperiale <https://github.com/crusaderky >`_.
83
- - Add the documented-but-missing :py:meth: `xarray.core.groupby. DatasetGroupBy.quantile `.
83
+ - Add the documented-but-missing :py:meth: `DatasetGroupBy.quantile `.
84
84
(:issue: `3525 `, :pull: `3527 `). By `Justus Magin <https://github.com/keewis >`_.
85
85
86
86
Bug fixes
87
87
~~~~~~~~~
88
88
- Ensure an index of type ``CFTimeIndex `` is not converted to a ``DatetimeIndex `` when
89
- calling :py:meth: `Dataset.rename ` (also :py:meth: `Dataset.rename_dims `
90
- and :py:meth: `xr.Dataset.rename_vars `). By `Mathias Hauser <https://github.com/mathause >`_
91
- (:issue: `3522 `).
92
- - Fix a bug in `set_index ` in case that an existing dimension becomes a level variable of MultiIndex. (:pull: `3520 `)
93
- By `Keisuke Fujii <https://github.com/fujiisoup >`_.
94
- - Harmonize `_FillValue `, `missing_value ` during encoding and decoding steps. (:pull: `3502 `)
89
+ calling :py:meth: `Dataset.rename `, :py:meth: `Dataset.rename_dims ` and :py:meth: `Dataset.rename_vars `.
90
+ By `Mathias Hauser <https://github.com/mathause >`_. (:issue: `3522 `).
91
+ - Fix a bug in :py:meth: `DataArray.set_index ` in case that an existing dimension becomes a level
92
+ variable of MultiIndex. (:pull: `3520 `). By `Keisuke Fujii <https://github.com/fujiisoup >`_.
93
+ - Harmonize ``_FillValue ``, ``missing_value `` during encoding and decoding steps. (:pull: `3502 `)
95
94
By `Anderson Banihirwe <https://github.com/andersy005 >`_.
96
95
- Fix regression introduced in v0.14.0 that would cause a crash if dask is installed
97
96
but cloudpickle isn't (:issue: `3401 `) by `Rhys Doyle <https://github.com/rdoyle45 >`_
98
97
- Fix grouping over variables with NaNs. (:issue: `2383 `, :pull: `3406 `).
99
98
By `Deepak Cherian <https://github.com/dcherian >`_.
100
- - Use dask names to compare dask objects prior to comparing values after computation.
99
+ - Make alignment and concatenation significantly more efficient by using dask names to compare dask
100
+ objects prior to comparing values after computation. This change makes it more convenient to carry
101
+ around large non-dimensional coordinate variables backed by dask arrays. Existing workarounds involving
102
+ ``reset_coords(drop=True) `` should now be unnecessary in most cases.
101
103
(:issue: `3068 `, :issue: `3311 `, :issue: `3454 `, :pull: `3453 `).
102
104
By `Deepak Cherian <https://github.com/dcherian >`_.
103
- - Sync with cftime by removing `dayofwk=-1 ` for cftime>=1.0.4.
104
- By `Anderson Banihirwe <https://github.com/andersy005 >`_.
105
+ - Add support for cftime>=1.0.4. By `Anderson Banihirwe <https://github.com/andersy005 >`_.
105
106
- Rolling reduction operations no longer compute dask arrays by default. (:issue: `3161 `).
106
107
In addition, the ``allow_lazy `` kwarg to ``reduce `` is deprecated.
107
108
By `Deepak Cherian <https://github.com/dcherian >`_.
108
- - Fix :py:meth: `xarray.core.groupby.DataArrayGroupBy.reduce ` and
109
- :py:meth: `xarray.core.groupby.DatasetGroupBy.reduce ` when reducing over multiple dimensions.
109
+ - Fix :py:meth: `GroupBy.reduce ` when reducing over multiple dimensions.
110
110
(:issue: `3402 `). By `Deepak Cherian <https://github.com/dcherian/ >`_
111
111
- Allow appending datetime and bool data variables to zarr stores.
112
112
(:issue: `3480 `). By `Akihiro Matsukawa <https://github.com/amatsukawa/ >`_.
113
113
114
114
Documentation
115
115
~~~~~~~~~~~~~
116
- - Fix leap year condition in example ( http://xarray.pydata.org/en/stable/examples/monthly-means.html)
117
- by `Mickaël Lalande <https://github.com/mickaellalande >`_.
116
+ - Fix leap year condition in ` monthly means example < http://xarray.pydata.org/en/stable/examples/monthly-means.html >`_.
117
+ By `Mickaël Lalande <https://github.com/mickaellalande >`_.
118
118
- Fix the documentation of :py:meth: `DataArray.resample ` and
119
- :py:meth: `Dataset.resample ` and explicitly state that a
119
+ :py:meth: `Dataset.resample ` — explicitly state that a
120
120
datetime-like dimension is required. (:pull: `3400 `)
121
121
By `Justus Magin <https://github.com/keewis >`_.
122
- - Update the terminology page to address multidimensional coordinates. (:pull: `3410 `)
122
+ - Update the :ref: ` terminology ` page to address multidimensional coordinates. (:pull: `3410 `)
123
123
By `Jon Thielen <https://github.com/jthielen >`_.
124
124
- Fix the documentation of :py:meth: `Dataset.integrate ` and
125
125
:py:meth: `DataArray.integrate ` and add an example to
@@ -183,15 +183,15 @@ Breaking changes
183
183
(:issue: `3222 `, :issue: `3293 `, :issue: `3340 `, :issue: `3346 `, :issue: `3358 `).
184
184
By `Guido Imperiale <https://github.com/crusaderky >`_.
185
185
186
- - Dropped the `drop=False ` optional parameter from :meth: `Variable.isel `.
186
+ - Dropped the `` drop=False `` optional parameter from :py :meth: `Variable.isel `.
187
187
It was unused and doesn't make sense for a Variable. (:pull: `3375 `).
188
188
By `Guido Imperiale <https://github.com/crusaderky >`_.
189
189
190
- - Remove internal usage of `collections.OrderedDict `. After dropping support for
191
- Python <=3.5, most uses of `OrderedDict ` in Xarray were no longer necessary. We
192
- have removed the internal use of the `OrderedDict ` in favor of Python's builtin
193
- `dict ` object which is now ordered itself. This change will be most obvious when
194
- interacting with the `attrs ` property on the Dataset and DataArray objects.
190
+ - Remove internal usage of :py:class: `collections.OrderedDict `. After dropping support for
191
+ Python <=3.5, most uses of `` OrderedDict ` ` in Xarray were no longer necessary. We
192
+ have removed the internal use of the `` OrderedDict ` ` in favor of Python's builtin
193
+ `` dict ` ` object which is now ordered itself. This change will be most obvious when
194
+ interacting with the `` attrs `` property on Dataset and DataArray objects.
195
195
(:issue: `3380 `, :pull: `3389 `). By `Joe Hamman <https://github.com/jhamman >`_.
196
196
197
197
New functions/methods
@@ -217,15 +217,15 @@ Enhancements
217
217
- Added a ``GroupBy.dims `` property that mirrors the dimensions
218
218
of each group (:issue: `3344 `).
219
219
220
- - Speed up :meth: `Dataset.isel ` up to 33% and :meth: `DataArray.isel ` up to 25% for small
220
+ - Speed up :py: meth: `Dataset.isel ` up to 33% and :py :meth: `DataArray.isel ` up to 25% for small
221
221
arrays (:issue: `2799 `, :pull: `3375 `). By
222
222
`Guido Imperiale <https://github.com/crusaderky >`_.
223
223
224
224
Bug fixes
225
225
~~~~~~~~~
226
226
- Reintroduce support for :mod: `weakref ` (broken in v0.13.0). Support has been
227
- reinstated for :class: `DataArray ` and :class: `Dataset ` objects only. Internal xarray
228
- objects remain unaddressable by weakref in order to save memory
227
+ reinstated for :py: class: `~xarray. DataArray ` and :py: class: `~xarray. Dataset ` objects only.
228
+ Internal xarray objects remain unaddressable by weakref in order to save memory
229
229
(:issue: `3317 `). By `Guido Imperiale <https://github.com/crusaderky >`_.
230
230
- Line plots with the ``x `` or ``y `` argument set to a 1D non-dimensional coord
231
231
now plot the correct data for 2D DataArrays
@@ -235,7 +235,7 @@ Bug fixes
235
235
- The default behaviour of reducing across all dimensions for
236
236
:py:class: `~xarray.core.groupby.DataArrayGroupBy ` objects has now been properly removed
237
237
as was done for :py:class: `~xarray.core.groupby.DatasetGroupBy ` in 0.13.0 (:issue: `3337 `).
238
- Use `xarray.ALL_DIMS ` if you need to replicate previous behaviour.
238
+ Use `` xarray.ALL_DIMS ` ` if you need to replicate previous behaviour.
239
239
Also raise nicer error message when no groups are created (:issue: `1764 `).
240
240
By `Deepak Cherian <https://github.com/dcherian >`_.
241
241
- Fix error in concatenating unlabeled dimensions (:pull: `3362 `).
@@ -322,7 +322,7 @@ New functions/methods
322
322
323
323
- xarray can now wrap around any
324
324
`NEP18 <https://www.numpy.org/neps/nep-0018-array-function-protocol.html >`_ compliant
325
- numpy-like library (important: read notes about NUMPY_EXPERIMENTAL_ARRAY_FUNCTION in
325
+ numpy-like library (important: read notes about `` NUMPY_EXPERIMENTAL_ARRAY_FUNCTION `` in
326
326
the above link). Added explicit test coverage for
327
327
`sparse <https://github.com/pydata/sparse >`_. (:issue: `3117 `, :issue: `3202 `).
328
328
This requires `sparse>=0.8.0 `. By `Nezar Abdennur <https://github.com/nvictus >`_
0 commit comments