pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/py-xarray



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Feb 19 18:25:04 UTC 2024

Modified Files:
        pkgsrc/math/py-xarray: Makefile PLIST distinfo

Log Message:
py-xarray: updated to 2024.2.0

v2024.02.0 (Feb 19, 2024)
-------------------------

This release brings size information to the text ``repr``, changes to the accepted frequency
strings, and various bug fixes.

Thanks to our 12 contributors:

Anderson Banihirwe, Deepak Cherian, Eivind Jahren, Etienne Schalk, Justus Magin, Marco Wolsza,
Mathias Hauser, Matt Savoie, Maximilian Roos, Rambaud Pierrick, Tom Nicholas

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

- Added a simple ``nbytes`` representation in DataArrays and Dataset ``repr``.
  (:issue:`8690`, :pull:`8702`).
  By `Etienne Schalk <https://github.com/etienneschalk>`_.
- Allow negative frequency strings (e.g. ``"-1YE"``). These strings are for example used in
  :py:func:`date_range`, and :py:func:`cftime_range` (:pull:`8651`).
  By `Mathias Hauser <https://github.com/mathause>`_.
- Add :py:meth:`NamedArray.expand_dims`, :py:meth:`NamedArray.permute_dims` and
  :py:meth:`NamedArray.broadcast_to` (:pull:`8380`)
  By `Anderson Banihirwe <https://github.com/andersy005>`_.
- Xarray now defers to `flox's heuristics <https://flox.readthedocs.io/en/latest/implementation.html#heuristics>`_
  to set the default `method` for groupby problems. This only applies to ``flox>=0.9``.
  By `Deepak Cherian <https://github.com/dcherian>`_.
- All `quantile` methods (e.g. :py:meth:`DataArray.quantile`) now use `numbagg`
  for the calculation of nanquantiles (i.e., `skipna=True`) if it is installed.
  This is currently limited to the linear interpolation method (`method='linear'`).
  (:issue:`7377`, :pull:`8684`)
  By `Marco Wolsza <https://github.com/maawoo>`_.

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

- :py:func:`infer_freq` always returns the frequency strings as defined in pandas 2.2
  (:issue:`8612`, :pull:`8627`).
  By `Mathias Hauser <https://github.com/mathause>`_.

Deprecations
~~~~~~~~~~~~
- The `dt.weekday_name` parameter wasn't functional on modern pandas versions and has been
  removed. (:issue:`8610`, :pull:`8664`)
  By `Sam Coleman <https://github.com/nameloCmaS>`_.

Bug fixes
~~~~~~~~~

- Fixed a regression that prevented multi-index level coordinates being serialized after resetting
  or dropping the multi-index (:issue:`8628`, :pull:`8672`).
  By `Benoit Bovy <https://github.com/benbovy>`_.
- Fix bug with broadcasting when wrapping array API-compliant classes. (:issue:`8665`, :pull:`8669`)
  By `Tom Nicholas <https://github.com/TomNicholas>`_.
- Ensure :py:meth:`DataArray.unstack` works when wrapping array API-compliant
  classes. (:issue:`8666`, :pull:`8668`)
  By `Tom Nicholas <https://github.com/TomNicholas>`_.
- Fix negative slicing of Zarr arrays without dask installed. (:issue:`8252`)
  By `Deepak Cherian <https://github.com/dcherian>`_.
- Preserve chunks when writing time-like variables to zarr by enabling lazy CF encoding of time-like
  variables (:issue:`7132`, :issue:`8230`, :issue:`8432`, :pull:`8575`).
  By `Spencer Clark <https://github.com/spencerkclark>`_ and `Mattia Almansi <https://github.com/malmans2>`_.
- Preserve chunks when writing time-like variables to zarr by enabling their lazy encoding
  (:issue:`7132`, :issue:`8230`, :issue:`8432`, :pull:`8253`, :pull:`8575`; see also discussion in
  :pull:`8253`).
  By `Spencer Clark <https://github.com/spencerkclark>`_ and `Mattia Almansi <https://github.com/malmans2>`_.
- Raise an informative error if dtype encoding of time-like variables would lead to integer overflow
  or unsafe conversion from floating point to integer values (:issue:`8542`, :pull:`8575`).
  By `Spencer Clark <https://github.com/spencerkclark>`_.
- Raise an error when unstacking a MultiIndex that has duplicates as this would lead to silent data
  loss (:issue:`7104`, :pull:`8737`).
  By `Mathias Hauser <https://github.com/mathause>`_.

Documentation
~~~~~~~~~~~~~
- Fix `variables` arg typo in `Dataset.sortby()` docstring (:issue:`8663`, :pull:`8670`)
  By `Tom Vo <https://github.com/tomvothecoder>`_.
- Fixed documentation where the use of the depreciated pandas frequency string prevented the
  documentation from being built. (:pull:`8638`)
  By `Sam Coleman <https://github.com/nameloCmaS>`_.

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

- ``DataArray.dt`` now raises an ``AttributeError`` rather than a ``TypeError`` when the data isn't
  datetime-like. (:issue:`8718`, :pull:`8724`)
  By `Maximilian Roos <https://github.com/max-sixty>`_.
- Move ``parallelcompat`` and ``chunk managers`` modules from ``xarray/core`` to
  ``xarray/namedarray``. (:pull:`8319`)
  By `Tom Nicholas <https://github.com/TomNicholas>`_ and `Anderson Banihirwe <https://github.com/andersy005>`_.
- Imports ``datatree`` repository and history into internal location. (:pull:`8688`)
  By `Matt Savoie <https://github.com/flamingbear>`_ and `Justus Magin <https://github.com/keewis>`_.
- Adds :py:func:`open_datatree` into ``xarray/backends`` (:pull:`8697`)
  By `Matt Savoie <https://github.com/flamingbear>`_.
- Refactor :py:meth:`xarray.core.indexing.DaskIndexingAdapter.__getitem__` to remove an unnecessary
  rewrite of the indexer key (:issue: `8377`, :pull:`8758`)


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/math/py-xarray/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/math/py-xarray/PLIST
cvs rdiff -u -r1.11 -r1.12 pkgsrc/math/py-xarray/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/py-xarray/Makefile
diff -u pkgsrc/math/py-xarray/Makefile:1.18 pkgsrc/math/py-xarray/Makefile:1.19
--- pkgsrc/math/py-xarray/Makefile:1.18 Wed Jan 24 09:16:58 2024
+++ pkgsrc/math/py-xarray/Makefile      Mon Feb 19 18:25:04 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.18 2024/01/24 09:16:58 adam Exp $
+# $NetBSD: Makefile,v 1.19 2024/02/19 18:25:04 adam Exp $
 
-DISTNAME=      xarray-2024.1.1
+DISTNAME=      xarray-2024.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    math python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=x/xarray/}

Index: pkgsrc/math/py-xarray/PLIST
diff -u pkgsrc/math/py-xarray/PLIST:1.7 pkgsrc/math/py-xarray/PLIST:1.8
--- pkgsrc/math/py-xarray/PLIST:1.7     Sat Jan 20 08:24:55 2024
+++ pkgsrc/math/py-xarray/PLIST Mon Feb 19 18:25:04 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2024/01/20 08:24:55 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2024/02/19 18:25:04 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -125,9 +125,6 @@ ${PYSITELIB}/xarray/core/coordinates.pyo
 ${PYSITELIB}/xarray/core/dask_array_ops.py
 ${PYSITELIB}/xarray/core/dask_array_ops.pyc
 ${PYSITELIB}/xarray/core/dask_array_ops.pyo
-${PYSITELIB}/xarray/core/daskmanager.py
-${PYSITELIB}/xarray/core/daskmanager.pyc
-${PYSITELIB}/xarray/core/daskmanager.pyo
 ${PYSITELIB}/xarray/core/dataarray.py
 ${PYSITELIB}/xarray/core/dataarray.pyc
 ${PYSITELIB}/xarray/core/dataarray.pyo
@@ -182,15 +179,9 @@ ${PYSITELIB}/xarray/core/options.pyo
 ${PYSITELIB}/xarray/core/parallel.py
 ${PYSITELIB}/xarray/core/parallel.pyc
 ${PYSITELIB}/xarray/core/parallel.pyo
-${PYSITELIB}/xarray/core/parallelcompat.py
-${PYSITELIB}/xarray/core/parallelcompat.pyc
-${PYSITELIB}/xarray/core/parallelcompat.pyo
 ${PYSITELIB}/xarray/core/pdcompat.py
 ${PYSITELIB}/xarray/core/pdcompat.pyc
 ${PYSITELIB}/xarray/core/pdcompat.pyo
-${PYSITELIB}/xarray/core/pycompat.py
-${PYSITELIB}/xarray/core/pycompat.pyc
-${PYSITELIB}/xarray/core/pycompat.pyo
 ${PYSITELIB}/xarray/core/resample.py
 ${PYSITELIB}/xarray/core/resample.pyc
 ${PYSITELIB}/xarray/core/resample.pyo
@@ -233,9 +224,18 @@ ${PYSITELIB}/xarray/namedarray/_typing.p
 ${PYSITELIB}/xarray/namedarray/core.py
 ${PYSITELIB}/xarray/namedarray/core.pyc
 ${PYSITELIB}/xarray/namedarray/core.pyo
+${PYSITELIB}/xarray/namedarray/daskmanager.py
+${PYSITELIB}/xarray/namedarray/daskmanager.pyc
+${PYSITELIB}/xarray/namedarray/daskmanager.pyo
 ${PYSITELIB}/xarray/namedarray/dtypes.py
 ${PYSITELIB}/xarray/namedarray/dtypes.pyc
 ${PYSITELIB}/xarray/namedarray/dtypes.pyo
+${PYSITELIB}/xarray/namedarray/parallelcompat.py
+${PYSITELIB}/xarray/namedarray/parallelcompat.pyc
+${PYSITELIB}/xarray/namedarray/parallelcompat.pyo
+${PYSITELIB}/xarray/namedarray/pycompat.py
+${PYSITELIB}/xarray/namedarray/pycompat.pyc
+${PYSITELIB}/xarray/namedarray/pycompat.pyo
 ${PYSITELIB}/xarray/namedarray/utils.py
 ${PYSITELIB}/xarray/namedarray/utils.pyc
 ${PYSITELIB}/xarray/namedarray/utils.pyo
@@ -290,6 +290,12 @@ ${PYSITELIB}/xarray/tests/data/example.i
 ${PYSITELIB}/xarray/tests/data/example.uamiv
 ${PYSITELIB}/xarray/tests/data/example_1.nc
 ${PYSITELIB}/xarray/tests/data/example_1.nc.gz
+${PYSITELIB}/xarray/tests/datatree/conftest.py
+${PYSITELIB}/xarray/tests/datatree/conftest.pyc
+${PYSITELIB}/xarray/tests/datatree/conftest.pyo
+${PYSITELIB}/xarray/tests/datatree/test_io.py
+${PYSITELIB}/xarray/tests/datatree/test_io.pyc
+${PYSITELIB}/xarray/tests/datatree/test_io.pyo
 ${PYSITELIB}/xarray/tests/test_accessor_dt.py
 ${PYSITELIB}/xarray/tests/test_accessor_dt.pyc
 ${PYSITELIB}/xarray/tests/test_accessor_dt.pyo

Index: pkgsrc/math/py-xarray/distinfo
diff -u pkgsrc/math/py-xarray/distinfo:1.11 pkgsrc/math/py-xarray/distinfo:1.12
--- pkgsrc/math/py-xarray/distinfo:1.11 Wed Jan 24 09:16:58 2024
+++ pkgsrc/math/py-xarray/distinfo      Mon Feb 19 18:25:04 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.11 2024/01/24 09:16:58 adam Exp $
+$NetBSD: distinfo,v 1.12 2024/02/19 18:25:04 adam Exp $
 
-BLAKE2s (xarray-2024.1.1.tar.gz) = 8f786ecfe830f10e612261442e073e10b3b493084fb7af2829df10bac72d4f9d
-SHA512 (xarray-2024.1.1.tar.gz) = b6447ca2c80b3a3091ac2baba648fef4faa79ffff272360e9726b318b517ede9d2717d1b6f77f03fdacf55527233f1a37c0d114901fe1a265d3e435cf293a487
-Size (xarray-2024.1.1.tar.gz) = 3614037 bytes
+BLAKE2s (xarray-2024.2.0.tar.gz) = 5cfac3751ca8aedc8c32fe4cee5395d5c0d5dd3cf82fc7b4bb9fbb2fe575e820
+SHA512 (xarray-2024.2.0.tar.gz) = dcfe6d1f0edab8659664c5399b96d622d2e3df2f85bb7672d9afab6f74294a6449772efde080aaa7323f733c09cbd0f6f037e547be0afa79f39450eead777828
+Size (xarray-2024.2.0.tar.gz) = 3634288 bytes



Home | Main Index | Thread Index | Old Index