./math/py-xarray, N-D labeled arrays and datasets in Python

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2024.9.0, Package name: py312-xarray-2024.9.0, Maintainer: jihbed.research

xarray (formerly xray) is an open source project and Python package
that aims to bring the labeled data power of pandas to the physical
sciences, by providing N-dimensional variants of the core pandas data
structures.


Required to run:
[devel/py-setuptools] [math/py-numpy] [math/py-pandas] [lang/python37]

Required to build:
[devel/py-pip] [pkgtools/cwrappers] [devel/py-setuptools_scm]

Master sites:

Filesize: 3659.602 KB

Version history: (Expand)


CVS history: (Expand)


   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-10-14 08:46:10 by Thomas Klausner | Files touched by this commit (325)
Log message:
*: clean-up after python38 removal
   2024-09-14 10:34:23 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-xarray: updated to 2024.9.0

v2024.09.0 (Sept 11, 2024)

This release drops support for Python 3.9, and adds support for grouping by \ 
:ref:`multiple arrays <groupby.multiple>`, while providing numerous \ 
performance improvements and bug fixes.
   2024-08-03 09:23:54 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-xarray: updated to 2024.7.0

v2024.07.0 (Jul 30, 2024)

This release extends the API for groupby operations with various `grouper
objects <groupby.groupers_>`, and includes improvements to the documentation
and numerous bugfixes.
   2024-06-14 22:11:58 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-xarray: updated to 2024.6.0

v2024.06.0 (Jun 13, 2024)
-------------------------
This release brings various performance optimizations and compatibility with the \ 
upcoming numpy 2.0 release.

Performance
~~~~~~~~~~~
- Small optimization to the netCDF4 and h5netcdf backends (:issue:`9058`, \ 
:pull:`9067`).
- Small optimizations to help reduce indexing speed of datasets (:pull:`9002`).
- Performance improvement in `open_datatree` method for Zarr, netCDF4 and \ 
h5netcdf backends (:issue:`8994`, :pull:`9014`).

Bug fixes
~~~~~~~~~
- Preserve conversion of timezone-aware pandas Datetime arrays to numpy object arrays
  (:issue:`9026`, :pull:`9042`).
- :py:meth:`DataArrayResample.interpolate` and \ 
:py:meth:`DatasetResample.interpolate` method now
  support arbitrary kwargs such as ``order`` for polynomial interpolation \ 
(:issue:`8762`).

Documentation
~~~~~~~~~~~~~
- Add link to CF Conventions on packed data and sentence on type determination \ 
in the I/O user guide (:issue:`9041`, :pull:`9045`).

Internal Changes
~~~~~~~~~~~~~~~~
- Migrates remainder of ``io.py`` to ``xarray/core/datatree_io.py`` and
  ``TreeAttrAccessMixin`` into ``xarray/core/common.py`` (:pull:`9011`).
- Compatibility with numpy 2 (:issue:`8844`, :pull:`8854`, :pull:`8946`).
   2024-05-20 11:55:26 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-xarray: updated to 2024.5.0

v2024.05.0 (May 12, 2024)
-------------------------

This release brings support for pandas ExtensionArray objects, optimizations \ 
when reading Zarr, the ability to concatenate datasets without pandas indexes,
more compatibility fixes for the upcoming numpy 2.0, and the migration of most \ 
of the xarray-datatree project code into xarray ``main``!

Thanks to the 18 contributors to this release:
Aimilios Tsouvelekakis, Andrey Akinshin, Deepak Cherian, Eni Awowale, Ilan Gold, \ 
Illviljan, Justus Magin, Mark Harfouche, Matt Savoie, Maximilian Roos, Noah C. \ 
Benson, Pascal Bourgault, Ray Bell, Spencer Clark, Tom Nicholas, ignamv, \ 
owenlittlejohns, and saschahofmann.

New Features
~~~~~~~~~~~~
- New "random" method for converting to and from 360_day calendars \ 
(:pull:`8603`).
  By `Pascal Bourgault <https://github.com/aulemahal>`_.
- Xarray now makes a best attempt not to coerce \ 
:py:class:`pandas.api.extensions.ExtensionArray` to a numpy array
  by supporting 1D ``ExtensionArray`` objects internally where possible.  Thus, \ 
:py:class:`Dataset` objects initialized with a ``pd.Categorical``,
  for example, will retain the object.  However, one cannot do operations that \ 
are not possible on the ``ExtensionArray``
  then, such as broadcasting. (:issue:`5287`, :issue:`8463`, :pull:`8723`)
  By `Ilan Gold <https://github.com/ilan-gold>`_.
- :py:func:`testing.assert_allclose`/:py:func:`testing.assert_equal` now accept \ 
a new argument `check_dims="transpose"`, controlling whether a \ 
transposed array is considered equal. (:issue:`5733`, :pull:`8991`)
  By `Ignacio Martinez Vazquez <https://github.com/ignamv>`_.
- Added the option to avoid automatically creating 1D pandas indexes in \ 
:py:meth:`Dataset.expand_dims()`, by passing the new kwarg
  `create_index_for_new_dim=False`. (:pull:`8960`)
  By `Tom Nicholas <https://github.com/TomNicholas>`_.
- Avoid automatically re-creating 1D pandas indexes in :py:func:`concat()`. Also \ 
added option to avoid creating 1D indexes for
  new dimension coordinates by passing the new kwarg \ 
`create_index_for_new_dim=False`. (:issue:`8871`, :pull:`8872`)
  By `Tom Nicholas <https://github.com/TomNicholas>`_.

Breaking changes
~~~~~~~~~~~~~~~~
- The PyNIO backend has been deleted (:issue:`4491`, :pull:`7301`).
  By `Deepak Cherian <https://github.com/dcherian>`_.
- The minimum versions of some dependencies were changed, in particular our \ 
minimum supported pandas version is now Pandas 2.
   2024-04-03 09:29:09 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-xarray: updated to 2024.3.0

v2024.03.0 (Mar 29, 2024)

This release brings performance improvements for grouped and resampled quantile \ 
calculations, CF decoding improvements,
minor optimizations to distributed Zarr writes, and compatibility fixes for \ 
Numpy 2.0 and Pandas 3.0.
   2024-02-19 19:25:04 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
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`)