Skip to content

Commit 233d7a8

Browse files
committed
tweak whats-new.
1 parent 52d4845 commit 233d7a8

File tree

2 files changed

+48
-47
lines changed

2 files changed

+48
-47
lines changed

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,4 +346,5 @@
346346
"scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
347347
"numba": ("https://numba.pydata.org/numba-doc/latest", None),
348348
"matplotlib": ("https://matplotlib.org", None),
349+
"dask": ("https://docs.dask.org/en/latest", None),
349350
}

doc/whats-new.rst

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,30 @@ v0.14.1 (unreleased)
2121
Breaking changes
2222
~~~~~~~~~~~~~~~~
2323

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>`_.
2625

27-
.. note::
26+
.. warning::
2827

2928
cftime version 1.0.4 is broken
3029
(`cftime/126 <https://github.com/Unidata/cftime/issues/126>`_);
3130
please use version 1.0.4.2 instead.
3231

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
3433
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`).
3736
By `Spencer Clark <https://github.com/spencerkclark>`_.
3837

3938
New Features
4039
~~~~~~~~~~~~
4140

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
4443
gap that will be filled by interpolation. By `Deepak Cherian <https://github.com/dcherian>`_.
4544
- :py:meth:`Dataset.drop_sel` & :py:meth:`DataArray.drop_sel` have been added for dropping labels.
4645
: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
4848
option for dropping either labels or variables, but using the more specific methods is encouraged.
4949
(:pull:`3475`)
5050
By `Maximilian Roos <https://github.com/max-sixty>`_
@@ -55,71 +55,71 @@ New Features
5555
methods is encouraged.
5656
(:pull:`3459`)
5757
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 (``...``)
5959
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`)
6161
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`)
6666
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
6969
(:issue:`3423`) by `Mathias Hauser <https://github.com/mathause>`_.
7070
- 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")``.
7373
(:pull:`3425`) by `Benoit Bovy <https://github.com/benbovy>`_ and
7474
`Julia Signell <https://github.com/jsignell>`_.
7575
- Implement `dask deterministic hashing
7676
<https://docs.dask.org/en/latest/custom-collections.html#deterministic-hashing>`_
7777
for xarray objects. Note that xarray objects with a dask.array backend already used
7878
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
8080
invoked. (:issue:`3378`, :pull:`3446`, :pull:`3515`)
8181
By `Deepak Cherian <https://github.com/dcherian>`_ and
8282
`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`.
8484
(:issue:`3525`, :pull:`3527`). By `Justus Magin <https://github.com/keewis>`_.
8585

8686
Bug fixes
8787
~~~~~~~~~
8888
- 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`)
9594
By `Anderson Banihirwe <https://github.com/andersy005>`_.
9695
- Fix regression introduced in v0.14.0 that would cause a crash if dask is installed
9796
but cloudpickle isn't (:issue:`3401`) by `Rhys Doyle <https://github.com/rdoyle45>`_
9897
- Fix grouping over variables with NaNs. (:issue:`2383`, :pull:`3406`).
9998
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.
101103
(:issue:`3068`, :issue:`3311`, :issue:`3454`, :pull:`3453`).
102104
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>`_.
105106
- Rolling reduction operations no longer compute dask arrays by default. (:issue:`3161`).
106107
In addition, the ``allow_lazy`` kwarg to ``reduce`` is deprecated.
107108
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.
110110
(:issue:`3402`). By `Deepak Cherian <https://github.com/dcherian/>`_
111111
- Allow appending datetime and bool data variables to zarr stores.
112112
(:issue:`3480`). By `Akihiro Matsukawa <https://github.com/amatsukawa/>`_.
113113

114114
Documentation
115115
~~~~~~~~~~~~~
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>`_.
118118
- 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
120120
datetime-like dimension is required. (:pull:`3400`)
121121
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`)
123123
By `Jon Thielen <https://github.com/jthielen>`_.
124124
- Fix the documentation of :py:meth:`Dataset.integrate` and
125125
:py:meth:`DataArray.integrate` and add an example to
@@ -183,15 +183,15 @@ Breaking changes
183183
(:issue:`3222`, :issue:`3293`, :issue:`3340`, :issue:`3346`, :issue:`3358`).
184184
By `Guido Imperiale <https://github.com/crusaderky>`_.
185185

186-
- Dropped the `drop=False` optional parameter from :meth:`Variable.isel`.
186+
- Dropped the ``drop=False`` optional parameter from :py:meth:`Variable.isel`.
187187
It was unused and doesn't make sense for a Variable. (:pull:`3375`).
188188
By `Guido Imperiale <https://github.com/crusaderky>`_.
189189

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.
195195
(:issue:`3380`, :pull:`3389`). By `Joe Hamman <https://github.com/jhamman>`_.
196196

197197
New functions/methods
@@ -217,15 +217,15 @@ Enhancements
217217
- Added a ``GroupBy.dims`` property that mirrors the dimensions
218218
of each group (:issue:`3344`).
219219

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
221221
arrays (:issue:`2799`, :pull:`3375`). By
222222
`Guido Imperiale <https://github.com/crusaderky>`_.
223223

224224
Bug fixes
225225
~~~~~~~~~
226226
- 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
229229
(:issue:`3317`). By `Guido Imperiale <https://github.com/crusaderky>`_.
230230
- Line plots with the ``x`` or ``y`` argument set to a 1D non-dimensional coord
231231
now plot the correct data for 2D DataArrays
@@ -235,7 +235,7 @@ Bug fixes
235235
- The default behaviour of reducing across all dimensions for
236236
:py:class:`~xarray.core.groupby.DataArrayGroupBy` objects has now been properly removed
237237
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.
239239
Also raise nicer error message when no groups are created (:issue:`1764`).
240240
By `Deepak Cherian <https://github.com/dcherian>`_.
241241
- Fix error in concatenating unlabeled dimensions (:pull:`3362`).
@@ -322,7 +322,7 @@ New functions/methods
322322

323323
- xarray can now wrap around any
324324
`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
326326
the above link). Added explicit test coverage for
327327
`sparse <https://github.com/pydata/sparse>`_. (:issue:`3117`, :issue:`3202`).
328328
This requires `sparse>=0.8.0`. By `Nezar Abdennur <https://github.com/nvictus>`_

0 commit comments

Comments
 (0)