Subject: CVS commit: pkgsrc/math/py-xarray
From: Adam Ciarcinski
Date: 2024-01-20 09:24:55
Message id: 20240120082455.D164DFA42@cvs.NetBSD.org

Log Message:
py-xarray: updated to 2024.1.0

v2024.01.0 (17 Jan, 2024)
-------------------------

This release brings support for weights in correlation and covariance functions,
a new `DataArray.cumulative` aggregation, improvements to `xr.map_blocks`,
an update to our minimum dependencies, and various bugfixes.

Thanks to our 17 contributors to this release:

Abel Aoun, Deepak Cherian, Illviljan, Johan Mathe, Justus Magin, Kai Mühlbauer,
Llorenç Lledó, Mark Harfouche, Markel, Mathias Hauser, Maximilian Roos, \ 
Michael Niklas,
Niclas Rieger, Sébastien Celles, Tom Nicholas, Trinh Quoc Anh, and crusaderky.

New Features
~~~~~~~~~~~~

- :py:meth:`xr.cov` and :py:meth:`xr.corr` now support using weights \ 
(:issue:`8527`, :pull:`7392`).
  By `Llorenç Lledó <https://github.com/lluritu>`_.
- Accept the compression arguments new in netCDF 1.6.0 in the netCDF4 backend.
  See `netCDF4 documentation \ 
<https://unidata.github.io/netcdf4-python/#efficient-compression-of-netcdf-variables>`_ \ 
for details.
  Note that some new compression filters needs plugins to be installed which may \ 
not be available in all netCDF distributions.
  By `Markel García-Díez <https://github.com/markelg>`_. (:issue:`6929`, \ 
:pull:`7551`)
- Add :py:meth:`DataArray.cumulative` & :py:meth:`Dataset.cumulative` to compute
  cumulative aggregations, such as ``sum``, along a dimension — for example
  ``da.cumulative('time').sum()``. This is similar to pandas' ``.expanding``,
  and mostly equivalent to ``.cumsum`` methods, or to
  :py:meth:`DataArray.rolling` with a window length equal to the dimension size.
  By `Maximilian Roos <https://github.com/max-sixty>`_. (:pull:`8512`)
- Decode/Encode netCDF4 enums and store the enum definition in dataarrays' dtype \ 
metadata.
  If multiple variables share the same enum in netCDF4, each dataarray will have \ 
its own
  enum definition in their respective dtype metadata.
  By `Abel Aoun <https://github.com/bzah>`_. (:issue:`8144`, :pull:`8147`)

Breaking changes
~~~~~~~~~~~~~~~~

- The minimum versions of some dependencies were changed (:pull:`8586`):

  ===================== =========  ========
   Package                    Old      New
  ===================== =========  ========
   cartopy                   0.20      0.21
   dask-core               2022.7   2022.12
   distributed             2022.7   2022.12
   flox                       0.5      0.7
   iris                       3.2      3.4
   matplotlib-base            3.5      3.6
   numpy                     1.22     1.23
   numba                     0.55     0.56
   packaging                 21.3     22.0
   seaborn                   0.11     0.12
   scipy                      1.8     1.10
   typing_extensions          4.3      4.4
   zarr                      2.12     2.13
  ===================== =========  ========

Deprecations
~~~~~~~~~~~~

- The `squeeze` kwarg to GroupBy is now deprecated. (:issue:`2157`, :pull:`8507`)
  By `Deepak Cherian <https://github.com/dcherian>`_.

Bug fixes
~~~~~~~~~

- Support non-string hashable dimensions in :py:class:`xarray.DataArray` \ 
(:issue:`8546`, :pull:`8559`).
  By `Michael Niklas <https://github.com/headtr1ck>`_.
- Reverse index output of bottleneck's rolling move_argmax/move_argmin functions \ 
(:issue:`8541`, :pull:`8552`).
  By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
- Vendor `SerializableLock` from dask and use as default lock for netcdf4 \ 
backends (:issue:`8442`, :pull:`8571`).
  By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
- Add tests and fixes for empty :py:class:`CFTimeIndex`, including broken html \ 
repr (:issue:`7298`, :pull:`8600`).
  By `Mathias Hauser <https://github.com/mathause>`_.

Internal Changes
~~~~~~~~~~~~~~~~

- The implementation of :py:func:`map_blocks` has changed to minimize graph size \ 
and duplication of data.
  This should be a strict improvement even though the graphs are not always \ 
embarassingly parallel any more.
  Please open an issue if you spot a regression. (:pull:`8412`, :issue:`8409`).
  By `Deepak Cherian <https://github.com/dcherian>`_.
- Remove null values before plotting. (:pull:`8535`).
  By `Jimmy Westling <https://github.com/illviljan>`_.
- Redirect cumulative reduction functions internally through the \ 
:py:class:`ChunkManagerEntryPoint`,
  potentially allowing :py:meth:`~xarray.DataArray.ffill` and \ 
:py:meth:`~xarray.DataArray.bfill` to
  use non-dask chunked array types.

Files:
RevisionActionfile
1.17modifypkgsrc/math/py-xarray/Makefile
1.7modifypkgsrc/math/py-xarray/PLIST
1.10modifypkgsrc/math/py-xarray/distinfo