2024-04-03 09:29:09 by Adam Ciarcinski | Files touched by this commit (3) | |
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) | |
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`)
|
2024-01-24 10:16:58 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-xarray: updated to 2024.1.1
v2024.01.1 (23 Jan, 2024)
This release is to fix a bug with the rendering of the documentation, but it \
also includes changes to the handling of pandas frequency strings.
Breaking changes
- Following pandas, :py:meth:`infer_freq` will return ``"YE"``, \
instead of ``"Y"`` (formerly ``"A"``).
This is to be consistent with the deprecation of the latter frequency string \
in pandas 2.2.
Deprecations
- Following pandas, the frequency string ``"Y"`` (formerly \
``"A"``) is deprecated in
favor of ``"YE"``. These strings are used, for example, in \
:py:func:`date_range`,
:py:func:`cftime_range`, :py:meth:`DataArray.resample`, and \
:py:meth:`Dataset.resample`
among others (:issue:`8612`, :pull:`8629`).
Documentation
- Pin ``sphinx-book-theme`` to ``1.0.1`` to fix a rendering issue with the \
sidebar in the docs.
|
2024-01-20 09:24:55 by Adam Ciarcinski | Files touched by this commit (3) | |
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.
|
2023-08-02 01:20:57 by Thomas Klausner | Files touched by this commit (158) |
Log message:
*: remove more references to Python 3.7
|
2023-07-01 10:37:47 by Thomas Klausner | Files touched by this commit (105) | |
Log message:
*: restrict py-numpy users to 3.9+ in preparation for update
|
2023-06-06 14:42:56 by Taylor R Campbell | Files touched by this commit (1319) |
Log message:
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.
Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).
No change to BUILD_DEPENDS as used correctly inside buildlink3.
As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
|
2022-02-10 15:11:31 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-xarray: updated to 0.21.1
v0.21.1 (31 January 2022)
-------------------------
This is a bugfix release to resolve
Bug fixes
~~~~~~~~~
- Add `packaging` as a dependency to Xarray
v0.21.0 (27 January 2022)
-------------------------
New Features
~~~~~~~~~~~~
- New top-level function :py:func:`cross`.
- ``keep_attrs`` support for :py:func:`where`
- Enable the limit option for dask array in the following methods \
:py:meth:`DataArray.ffill`, :py:meth:`DataArray.bfill`, :py:meth:`Dataset.ffill` \
and :py:meth:`Dataset.bfill`
Breaking changes
~~~~~~~~~~~~~~~~
- Rely on matplotlib's default datetime converters instead of pandas'
- Improve repr readability when there are a large number of dimensions in \
datasets or dataarrays by
wrapping the text once the maximum display width has been exceeded.
Deprecations
~~~~~~~~~~~~
- Removed the lock kwarg from the zarr and pydap backends, completing the \
deprecation cycle started in :issue:`5256`.
- Support for ``python 3.7`` has been dropped.
Bug fixes
~~~~~~~~~
- Preserve chunks when creating a :py:class:`DataArray` from another \
:py:class:`DataArray`
- Properly support :py:meth:`DataArray.ffill`, :py:meth:`DataArray.bfill`, \
:py:meth:`Dataset.ffill` and :py:meth:`Dataset.bfill` along chunked dimensions
- Subclasses of ``byte`` and ``str`` (e.g. ``np.str_`` and ``np.bytes_``) will \
now serialise to disk rather than raising a ``ValueError: unsupported dtype for \
netCDF4 variable: object`` as they did previously
- Fix applying function with non-xarray arguments using :py:func:`xr.map_blocks`.
- No longer raise an error for an all-nan-but-one argument to
:py:meth:`DataArray.interpolate_na` when using `method='nearest'`
- `dt.season \
<https://xarray.pydata.org/en/stable/generated/xarray.DataArray.dt.season.html>`_ \
can now handle NaN and NaT.
- Determination of zarr chunks handles empty lists for encoding chunks or \
variable chunks that occurs in certain cirumstances
Internal Changes
~~~~~~~~~~~~~~~~
- Replace ``distutils.version`` with ``packaging.version``
- Removed internal checks for ``pd.Panel``
- Add ``pyupgrade`` pre-commit hook
|
2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595) |
Log message:
*: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
|
2021-12-30 14:05:42 by Adam Ciarcinski | Files touched by this commit (125) |
Log message:
Forget about Python 3.6
|