From f7bedd0414597d9db8baecd22f1dde3123430c4d Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Fri, 18 Sep 2020 11:53:37 -0700 Subject: [PATCH 1/6] Release notes for 0.16.1 --- doc/whats-new.rst | 75 +++++++++++++++++++++++++++++------------------ 1 file changed, 47 insertions(+), 28 deletions(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index f624e89019d..86c36caee47 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -16,58 +16,70 @@ What's New .. _whats-new.0.16.1: -v0.16.1 (unreleased) +v0.16.1 (2020-09-20) --------------------- -Breaking changes +This patch release fixes an incompatability with a recent pandas change, which +was causing an issue indexing with a ``datetime64``. It also includes +improvements to ``rolling``, ``to_dataframe``, ``cov`` & ``corr`` methods and +bug fixes. + +Many thanks to the 36 contributors who contributed to this release: + +Aaron Spring, Akio Taniguchi, Aleksandar Jelenak, Alexandre Poux, +Caleb, Dan Nowacki, Deepak Cherian, Gerardo Rivera, Jacob Tomlinson, James A. +Bednar, Joe Hamman, Julia Kent, Kai Mühlbauer, Keisuke Fujii, Mathias Hauser, +Maximilian Roos, Nick R. Papior, Pascal Bourgault, Peter Hausamann, Romain +Martinez, Russell Manser, Samnan Rahee, Sander, Spencer Clark, Stephan Hoyer, +Thomas Zilio, Tobias Kölling, Tom Augspurger, alexamici, crusaderky, darikg, +inakleinbottle, jenssss, johnomotani, keewis, rpgoldman Breaking changes + ~~~~~~~~~~~~~~~~ + - :py:meth:`DataArray.astype` and :py:meth:`Dataset.astype` now preserve attributes. Keep the old behavior by passing `keep_attrs=False` (:issue:`2049`, :pull:`4314`). By `Dan Nowacki `_ and `Gabriel Joel Mitchell `_. New Features ~~~~~~~~~~~~ -- Support multiple outputs in :py:func:`xarray.apply_ufunc` when using ``dask='parallelized'``. (:issue:`1815`, :pull:`4060`) - By `Kai Mühlbauer `_. + - :py:meth:`~xarray.DataArray.rolling` and :py:meth:`~xarray.Dataset.rolling` now accept more than 1 dimension. (:pull:`4219`) By `Keisuke Fujii `_. +- :py:meth:`~xarray.DataArray.to_dataframe` and :py:meth:`~xarray.Dataset.to_dataframe` + now accept a ``dim_order`` parameter allowing to specify the resulting dataframe's + dimensions order (:issue:`4331`, :pull:`4333`). + By `Thomas Zilio `_. +- Support multiple outputs in :py:func:`xarray.apply_ufunc` when using +``dask='parallelized'``. (:issue:`1815`, :pull:`4060`) + By `Kai Mühlbauer `_. - ``min_count`` can be supplied to reductions such as ``.sum`` when specifying multiple dimension to reduce over. (:pull:`4356`) By `Maximilian Roos `_. - :py:func:`xarray.cov` and :py:func:`xarray.corr` now handle missing values. (:pull:`4351`) By `Maximilian Roos `_. +- Add support for parsing datetime strings formatted following the default + string representation of cftime objects, i.e. YYYY-MM-DD hh:mm:ss, in + partial datetime string indexing, as well as :py:meth:`~xarray.cftime_range` + (:issue:`4337`). By `Spencer Clark `_. - Build ``CFTimeIndex.__repr__`` explicitly as :py:class:`pandas.Index`. Add ``calendar`` as a new property for :py:class:`CFTimeIndex` and show ``calendar`` and ``length`` in ``CFTimeIndex.__repr__`` (:issue:`2416`, :pull:`4092`) By `Aaron Spring `_. -- Relaxed the :ref:`mindeps_policy` to support: - - - all versions of setuptools released in the last 42 months (but no older than 38.4) - - all versions of dask and dask.distributed released in the last 12 months (but no - older than 2.9) - - all versions of other packages released in the last 12 months - - All are up from 6 months (:issue:`4295`) - `Guido Imperiale `_. - Use a wrapped array's ``_repr_inline_`` method to construct the collapsed ``repr`` of :py:class:`DataArray` and :py:class:`Dataset` objects and document the new method in :doc:`internals`. (:pull:`4248`). By `Justus Magin `_. -- Add support for parsing datetime strings formatted following the default - string representation of cftime objects, i.e. YYYY-MM-DD hh:mm:ss, in - partial datetime string indexing, as well as :py:meth:`~xarray.cftime_range` - (:issue:`4337`). By `Spencer Clark `_. -- :py:meth:`~xarray.DataArray.to_dataframe` and :py:meth:`~xarray.Dataset.to_dataframe` - now accept a ``dim_order`` parameter allowing to specify the resulting dataframe's - dimensions order (:issue:`4331`, :pull:`4333`). - By `Thomas Zilio `_. - Expose ``use_cftime`` option in :py:func:`~xarray.open_zarr` (:issue:`2886`, :pull:`3229`) By `Samnan Rahee `_ and `Anderson Banihirwe `_. Bug fixes ~~~~~~~~~ + +- Fix indexing with datetime64 scalars with pandas 1.1 (:issue:`4283`). + By `Stephan Hoyer `_ and + `Justus Magin `_. - Variables which are chunked using dask only along some dimensions can be chunked while storing with zarr along previously unchunked dimensions (:pull:`4312`) By `Tobias Kölling `_. - Fixed a bug in backend caused by basic installation of Dask (:issue:`4164`, :pull:`4318`) @@ -86,9 +98,9 @@ Bug fixes By `Jens Svensmark `_ - Fix incorrect legend labels for :py:meth:`Dataset.plot.scatter` (:issue:`4126`). By `Peter Hausamann `_. -- Fix indexing with datetime64 scalars with pandas 1.1 (:issue:`4283`). - By `Stephan Hoyer `_ and - `Justus Magin `_. +- Fix ``pip install .`` when no ``.git`` directory exists; namely when the xarray source + directory has been rsync'ed by PyCharm Professional for a remote deployment over SSH. + By `Guido Imperiale `_ Documentation ~~~~~~~~~~~~~ @@ -98,17 +110,24 @@ Documentation - Removed skipna argument from :py:meth:`DataArray.count`, :py:meth:`DataArray.any`, :py:meth:`DataArray.all`. (:issue:`755`) By `Sander van Rijn `_ - Update the contributing guide to use merges instead of rebasing and state - that we squash-merge. (:pull:`4355`) By `Justus Magin `_. + that we squash-merge. (:pull:`4355`). By `Justus Magin `_. - Updated Vectorized Indexing to a clearer example. By `Maximilian Roos `_ Internal Changes ~~~~~~~~~~~~~~~~ + +- Relaxed the :ref:`mindeps_policy` to support: + + - all versions of setuptools released in the last 42 months (but no older than 38.4) + - all versions of dask and dask.distributed released in the last 12 months (but no + older than 2.9) + - all versions of other packages released in the last 12 months + + All are up from 6 months (:issue:`4295`) + `Guido Imperiale `_. - Use :py:func:`dask.array.apply_gufunc` instead of :py:func:`dask.array.blockwise` in :py:func:`xarray.apply_ufunc` when using ``dask='parallelized'``. (:pull:`4060`, :pull:`4391`, :pull:`4392`) -- Fix ``pip install .`` when no ``.git`` directory exists; namely when the xarray source - directory has been rsync'ed by PyCharm Professional for a remote deployment over SSH. - By `Guido Imperiale `_ - Align ``mypy`` versions to ``0.782`` across ``requirements`` and ``.pre-commit-config.yml`` files. (:pull:`4390`) By `Maximilian Roos `_ From b97b3fa790cc7b6156bb062f6f0311c05d17bbd0 Mon Sep 17 00:00:00 2001 From: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Date: Fri, 18 Sep 2020 12:16:54 -0700 Subject: [PATCH 2/6] Update doc/whats-new.rst Co-authored-by: Deepak Cherian --- doc/whats-new.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 86c36caee47..4e186ed835d 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -32,7 +32,9 @@ Bednar, Joe Hamman, Julia Kent, Kai Mühlbauer, Keisuke Fujii, Mathias Hauser, Maximilian Roos, Nick R. Papior, Pascal Bourgault, Peter Hausamann, Romain Martinez, Russell Manser, Samnan Rahee, Sander, Spencer Clark, Stephan Hoyer, Thomas Zilio, Tobias Kölling, Tom Augspurger, alexamici, crusaderky, darikg, -inakleinbottle, jenssss, johnomotani, keewis, rpgoldman Breaking changes +inakleinbottle, jenssss, johnomotani, keewis, rpgoldman + +Breaking changes ~~~~~~~~~~~~~~~~ From e5e4cd0e7e1c3e42a62e2a67ab65812c024536a3 Mon Sep 17 00:00:00 2001 From: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Date: Fri, 18 Sep 2020 12:17:14 -0700 Subject: [PATCH 3/6] Update doc/whats-new.rst Co-authored-by: keewis --- doc/whats-new.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 4e186ed835d..ba011ca5073 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -72,6 +72,8 @@ New Features of :py:class:`DataArray` and :py:class:`Dataset` objects and document the new method in :doc:`internals`. (:pull:`4248`). By `Justus Magin `_. +- Allow per-variable fill values in most functions. (:pull:`4237`) + By `Justus Magin `_. - Expose ``use_cftime`` option in :py:func:`~xarray.open_zarr` (:issue:`2886`, :pull:`3229`) By `Samnan Rahee `_ and `Anderson Banihirwe `_. From 3a676fd7119533223f27439b0f4b66f111922a45 Mon Sep 17 00:00:00 2001 From: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Date: Fri, 18 Sep 2020 12:17:33 -0700 Subject: [PATCH 4/6] Update doc/whats-new.rst Co-authored-by: Deepak Cherian --- doc/whats-new.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index ba011ca5073..c14d612a8a3 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -35,7 +35,6 @@ Thomas Zilio, Tobias Kölling, Tom Augspurger, alexamici, crusaderky, darikg, inakleinbottle, jenssss, johnomotani, keewis, rpgoldman Breaking changes - ~~~~~~~~~~~~~~~~ - :py:meth:`DataArray.astype` and :py:meth:`Dataset.astype` now preserve attributes. Keep the From 16982d8d38458f4e830cb5fb4408217408451978 Mon Sep 17 00:00:00 2001 From: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Date: Fri, 18 Sep 2020 12:18:19 -0700 Subject: [PATCH 5/6] Update doc/whats-new.rst --- doc/whats-new.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index c14d612a8a3..1d28910d10e 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -71,7 +71,7 @@ New Features of :py:class:`DataArray` and :py:class:`Dataset` objects and document the new method in :doc:`internals`. (:pull:`4248`). By `Justus Magin `_. -- Allow per-variable fill values in most functions. (:pull:`4237`) +- Allow per-variable fill values in most functions. (:pull:`4237`). By `Justus Magin `_. - Expose ``use_cftime`` option in :py:func:`~xarray.open_zarr` (:issue:`2886`, :pull:`3229`) By `Samnan Rahee `_ and `Anderson Banihirwe `_. From e80703ad7be70616dff40c8f3f7ca395769c057c Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Fri, 18 Sep 2020 15:19:21 -0700 Subject: [PATCH 6/6] _ --- doc/whats-new.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 370cf441a2b..f849eb507e8 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -52,7 +52,7 @@ New Features dimensions order (:issue:`4331`, :pull:`4333`). By `Thomas Zilio `_. - Support multiple outputs in :py:func:`xarray.apply_ufunc` when using -``dask='parallelized'``. (:issue:`1815`, :pull:`4060`) + ``dask='parallelized'``. (:issue:`1815`, :pull:`4060`). By `Kai Mühlbauer `_. - ``min_count`` can be supplied to reductions such as ``.sum`` when specifying multiple dimension to reduce over; (:pull:`4356`).