From 4c54ff85ae97c14639aac0920d52204ae2a38b4ac3556825e5d9184c9fd754ec Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sat, 1 Feb 2020 15:13:57 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=20version=200.15.0:=20=20-=20Th?= =?UTF-8?q?is=20release=20brings=20many=20improvements=20to=20xarray's=20d?= =?UTF-8?q?ocumentation:=20our=20examples=20are=20now=20binderized=20noteb?= =?UTF-8?q?ooks=20(`click=20here=20?= =?UTF-8?q?`=5F):=20=20-=20and=20we=20have=20new=20example=20notebooks=20f?= =?UTF-8?q?rom=20our=20SciPy=202019=20sprint=20(many=20thanks=20to=20our?= =?UTF-8?q?=20contributors!).:=20=20-=20This=20release=20also=20features?= =?UTF-8?q?=20many=20API=20improvements=20such=20as=20a=20new:=20:py:class?= =?UTF-8?q?:`~core.accessor=5Fdt.TimedeltaAccessor`=20and=20support=20for?= =?UTF-8?q?=20:py:class:`CFTimeIndex`=20in=20:py:meth:`~DataArray.interpol?= =?UTF-8?q?ate=5Fna`);=20as=20well=20as=20many=20bug=20fixes.=20=20-=20Bre?= =?UTF-8?q?aking=20changes:=20=20=20-=20Bumped=20minimum=20tested=20versio?= =?UTF-8?q?ns=20for=20dependencies:=20=20=20=20=20-=20numpy=201.15=20=20?= =?UTF-8?q?=20=20=20-=20pandas=200.25=20=20=20=20=20-=20dask=202.2=20=20?= =?UTF-8?q?=20=20=20-=20distributed=202.2=20=20=20=20=20-=20scipy=201.3=20?= =?UTF-8?q?=20=20-=20Remove=20``compat``=20and=20``encoding``=20kwargs=20f?= =?UTF-8?q?rom=20``DataArray``,=20which=20=20=20=20=20have=20been=20deprec?= =?UTF-8?q?ated=20since=200.12.=20(:pull:`3650`).=20=20=20=20=20Instead,?= =?UTF-8?q?=20specify=20the=20``encoding``=20kwarg=20when=20writing=20to?= =?UTF-8?q?=20disk=20or=20set=20=20=20=20=20the=20:py:attr:`DataArray.enco?= =?UTF-8?q?ding`=20attribute=20directly.=20=20=20=20=20By=20`Maximilian=20?= =?UTF-8?q?Roos=20`=5F.=20=20=20-=20:py:func?= =?UTF-8?q?:`xarray.dot`,=20:py:meth:`DataArray.dot`,=20and=20the=20``@``?= =?UTF-8?q?=20operator=20now=20=20=20=20=20use=20``align=3D"inner"``=20(ex?= =?UTF-8?q?cept=20when=20``xarray.set=5Foptions(arithmetic=5Fjoin=3D"exact?= =?UTF-8?q?")``;=20=20=20=20=20:issue:`3694`)=20by=20`Mathias=20Hauser=20`=5F.=20=20-=20New=20Features:=20?= =?UTF-8?q?=20=20-=20:py:meth:`DataArray.sel`=20and=20:py:meth:`Dataset.se?= =?UTF-8?q?l`=20now=20support=20:py:class:`pandas.CategoricalIndex`.=20(:i?= =?UTF-8?q?ssue:`3669`)=20=20=20=20=20By=20`Keisuke=20Fujii=20`=5F.=20=20=20-=20Support=20using=20an=20exis?= =?UTF-8?q?ting,=20opened=20h5netcdf=20``File``=20with=20=20=20=20=20:py:c?= =?UTF-8?q?lass:`~xarray.backends.H5NetCDFStore`.=20This=20permits=20creat?= =?UTF-8?q?ing=20an=20=20=20=20=20:py:class:`~xarray.Dataset`=20from=20a?= =?UTF-8?q?=20h5netcdf=20``File``=20that=20has=20been=20opened=20=20=20=20?= =?UTF-8?q?=20using=20other=20means=20(:issue:`3618`).=20=20=20=20=20By=20?= =?UTF-8?q?`Kai=20M=C3=83=C2=BChlbauer=20`?= =?UTF-8?q?=5F.=20=20=20-=20Implement=20``median``=20and=20``nanmedian``?= =?UTF-8?q?=20for=20dask=20arrays.=20This=20works=20by=20rechunking?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=31 --- python-xarray.changes | 140 ++++++++++++++++++++++++++++++++++++++++++ python-xarray.spec | 17 ++--- xarray-0.14.1.tar.gz | 3 - xarray-0.15.0.tar.gz | 3 + 4 files changed, 153 insertions(+), 10 deletions(-) delete mode 100644 xarray-0.14.1.tar.gz create mode 100644 xarray-0.15.0.tar.gz diff --git a/python-xarray.changes b/python-xarray.changes index 710ea80..4a744fd 100644 --- a/python-xarray.changes +++ b/python-xarray.changes @@ -1,3 +1,143 @@ +------------------------------------------------------------------- +Sat Feb 1 15:02:10 UTC 2020 - Sebastian Wagner + +- update to version 0.15.0: + - This release brings many improvements to xarray's documentation: our examples are now binderized notebooks (`click here `_): + - and we have new example notebooks from our SciPy 2019 sprint (many thanks to our contributors!).: + - This release also features many API improvements such as a new: +:py:class:`~core.accessor_dt.TimedeltaAccessor` and support for :py:class:`CFTimeIndex` in +:py:meth:`~DataArray.interpolate_na`); as well as many bug fixes. + - Breaking changes: + - Bumped minimum tested versions for dependencies: + - numpy 1.15 + - pandas 0.25 + - dask 2.2 + - distributed 2.2 + - scipy 1.3 + - Remove ``compat`` and ``encoding`` kwargs from ``DataArray``, which + have been deprecated since 0.12. (:pull:`3650`). + Instead, specify the ``encoding`` kwarg when writing to disk or set + the :py:attr:`DataArray.encoding` attribute directly. + By `Maximilian Roos `_. + - :py:func:`xarray.dot`, :py:meth:`DataArray.dot`, and the ``@`` operator now + use ``align="inner"`` (except when ``xarray.set_options(arithmetic_join="exact")``; + :issue:`3694`) by `Mathias Hauser `_. + - New Features: + - :py:meth:`DataArray.sel` and :py:meth:`Dataset.sel` now support :py:class:`pandas.CategoricalIndex`. (:issue:`3669`) + By `Keisuke Fujii `_. + - Support using an existing, opened h5netcdf ``File`` with + :py:class:`~xarray.backends.H5NetCDFStore`. This permits creating an + :py:class:`~xarray.Dataset` from a h5netcdf ``File`` that has been opened + using other means (:issue:`3618`). + By `Kai Mühlbauer `_. + - Implement ``median`` and ``nanmedian`` for dask arrays. This works by rechunking + to a single chunk along all reduction axes. (:issue:`2999`). + By `Deepak Cherian `_. + - :py:func:`~xarray.concat` now preserves attributes from the first Variable. + (:issue:`2575`, :issue:`2060`, :issue:`1614`) + By `Deepak Cherian `_. + - :py:meth:`Dataset.quantile`, :py:meth:`DataArray.quantile` and ``GroupBy.quantile`` + now work with dask Variables. + By `Deepak Cherian `_. + - Added the ``count`` reduction method to both :py:class:`~core.rolling.DatasetCoarsen` + and :py:class:`~core.rolling.DataArrayCoarsen` objects. (:pull:`3500`) + By `Deepak Cherian `_ + - Add ``meta`` kwarg to :py:func:`~xarray.apply_ufunc`; + this is passed on to :py:func:`dask.array.blockwise`. (:pull:`3660`) + By `Deepak Cherian `_. + - Add ``attrs_file`` option in :py:func:`~xarray.open_mfdataset` to choose the + source file for global attributes in a multi-file dataset (:issue:`2382`, + :pull:`3498`). By `Julien Seguinot `_. + - :py:meth:`Dataset.swap_dims` and :py:meth:`DataArray.swap_dims` + now allow swapping to dimension names that don't exist yet. (:pull:`3636`) + By `Justus Magin `_. + - Extend :py:class:`~core.accessor_dt.DatetimeAccessor` properties + and support ``.dt`` accessor for timedeltas + via :py:class:`~core.accessor_dt.TimedeltaAccessor` (:pull:`3612`) + By `Anderson Banihirwe `_. + - Improvements to interpolating along time axes (:issue:`3641`, :pull:`3631`). + By `David Huard `_. + - Support :py:class:`CFTimeIndex` in :py:meth:`DataArray.interpolate_na` + - define 1970-01-01 as the default offset for the interpolation index for both + :py:class:`pandas.DatetimeIndex` and :py:class:`CFTimeIndex`, + - use microseconds in the conversion from timedelta objects to floats to avoid + overflow errors. + - Bug fixes: + - Applying a user-defined function that adds new dimensions using :py:func:`apply_ufunc` + and ``vectorize=True`` now works with ``dask > 2.0``. (:issue:`3574`, :pull:`3660`). + By `Deepak Cherian `_. + - Fix :py:meth:`~xarray.combine_by_coords` to allow for combining incomplete + hypercubes of Datasets (:issue:`3648`). By `Ian Bolliger + `_. + - Fix :py:func:`~xarray.combine_by_coords` when combining cftime coordinates + which span long time intervals (:issue:`3535`). By `Spencer Clark + `_. + - Fix plotting with transposed 2D non-dimensional coordinates. (:issue:`3138`, :pull:`3441`) + By `Deepak Cherian `_. + - :py:meth:`plot.FacetGrid.set_titles` can now replace existing row titles of a + :py:class:`~xarray.plot.FacetGrid` plot. In addition :py:class:`~xarray.plot.FacetGrid` gained + two new attributes: :py:attr:`~xarray.plot.FacetGrid.col_labels` and + :py:attr:`~xarray.plot.FacetGrid.row_labels` contain :py:class:`matplotlib.text.Text` handles for both column and + row labels. These can be used to manually change the labels. + By `Deepak Cherian `_. + - Fix issue with Dask-backed datasets raising a ``KeyError`` on some computations involving :py:func:`map_blocks` (:pull:`3598`). + By `Tom Augspurger `_. + - Ensure :py:meth:`Dataset.quantile`, :py:meth:`DataArray.quantile` issue the correct error + when ``q`` is out of bounds (:issue:`3634`) by `Mathias Hauser `_. + - Fix regression in xarray 0.14.1 that prevented encoding times with certain + ``dtype``, ``_FillValue``, and ``missing_value`` encodings (:issue:`3624`). + By `Spencer Clark `_ + - Raise an error when trying to use :py:meth:`Dataset.rename_dims` to + rename to an existing name (:issue:`3438`, :pull:`3645`) + By `Justus Magin `_. + - :py:meth:`Dataset.rename`, :py:meth:`DataArray.rename` now check for conflicts with + MultiIndex level names. + - :py:meth:`Dataset.merge` no longer fails when passed a :py:class:`DataArray` instead of a :py:class:`Dataset`. + By `Tom Nicholas `_. + - Fix a regression in :py:meth:`Dataset.drop`: allow passing any + iterable when dropping variables (:issue:`3552`, :pull:`3693`) + By `Justus Magin `_. + - Fixed errors emitted by ``mypy --strict`` in modules that import xarray. + (:issue:`3695`) by `Guido Imperiale `_. + - Allow plotting of binned coordinates on the y axis in :py:meth:`plot.line` + and :py:meth:`plot.step` plots (:issue:`3571`, + :pull:`3685`) by `Julien Seguinot `_. + - Documentation: + - Switch doc examples to use `nbsphinx `_ and replace + ``sphinx_gallery`` scripts with Jupyter notebooks. (:pull:`3105`, :pull:`3106`, :pull:`3121`) + By `Ryan Abernathey `_. + - Added :doc:`example notebook ` demonstrating use of xarray with + Regional Ocean Modeling System (ROMS) ocean hydrodynamic model output. (:pull:`3116`) + By `Robert Hetland `_. + - Added :doc:`example notebook ` demonstrating the visualization of + ERA5 GRIB data. (:pull:`3199`) + By `Zach Bruick `_ and + `Stephan Siemen `_. + - Added examples for :py:meth:`DataArray.quantile`, :py:meth:`Dataset.quantile` and + ``GroupBy.quantile``. (:pull:`3576`) + By `Justus Magin `_. + - Add new :doc:`example notebook ` example notebook demonstrating + vectorization of a 1D function using :py:func:`apply_ufunc` , dask and numba. + By `Deepak Cherian `_. + - Added example for :py:func:`~xarray.map_blocks`. (:pull:`3667`) + By `Riley X. Brady `_. + - Internal Changes: + - Make sure dask names change when rechunking by different chunk sizes. Conversely, make sure they + stay the same when rechunking by the same chunk size. (:issue:`3350`) + By `Deepak Cherian `_. + - 2x to 5x speed boost (on small arrays) for :py:meth:`Dataset.isel`, + :py:meth:`DataArray.isel`, and :py:meth:`DataArray.__getitem__` when indexing by int, + slice, list of int, scalar ndarray, or 1-dimensional ndarray. + (:pull:`3533`) by `Guido Imperiale `_. + - Removed internal method ``Dataset._from_vars_and_coord_names``, + which was dominated by ``Dataset._construct_direct``. (:pull:`3565`) + By `Maximilian Roos `_. + - Replaced versioneer with setuptools-scm. Moved contents of setup.py to setup.cfg. + Removed pytest-runner from setup.py, as per deprecation notice on the pytest-runner + project. (:pull:`3714`) by `Guido Imperiale `_. + - Use of isort is now enforced by CI. + (:pull:`3721`) by `Guido Imperiale `_ + ------------------------------------------------------------------- Fri Nov 22 06:11:38 UTC 2019 - Arun Persaud diff --git a/python-xarray.spec b/python-xarray.spec index ad386d3..5ef343f 100644 --- a/python-xarray.spec +++ b/python-xarray.spec @@ -1,7 +1,7 @@ # # spec file for package python-xarray # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,21 +19,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-xarray -Version: 0.14.1 +Version: 0.15.0 Release: 0 Summary: N-D labeled arrays and datasets in Python License: Apache-2.0 URL: https://github.com/pydata/xarray Source: https://files.pythonhosted.org/packages/source/x/xarray/xarray-%{version}.tar.gz -BuildRequires: %{python_module numpy >= 1.14} +BuildRequires: %{python_module numpy >= 1.15} BuildRequires: %{python_module numpy-devel >= 1.14} -BuildRequires: %{python_module pandas >= 0.24} +BuildRequires: %{python_module pandas >= 0.25} +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-numpy >= 1.14 -Requires: python-pandas >= 0.24 -Recommends: python-scipy +Requires: python-numpy >= 1.15 +Requires: python-pandas >= 0.25 +Suggests: python-dask >= 2.2 +Recommends: python-scipy >= 1.3 Provides: python-xray = %{version} Obsoletes: python-xray < %{version} BuildArch: noarch @@ -57,6 +59,7 @@ The dataset is an in-memory representation of a netCDF file. %prep %setup -q -n xarray-%{version} +chmod -x xarray/util/print_versions.py %build %python_build diff --git a/xarray-0.14.1.tar.gz b/xarray-0.14.1.tar.gz deleted file mode 100644 index 86897ab..0000000 --- a/xarray-0.14.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:04b2f4d24707b8871a7ffa37328d0a2de74e81bd30791c9608712612601abd23 -size 1873976 diff --git a/xarray-0.15.0.tar.gz b/xarray-0.15.0.tar.gz new file mode 100644 index 0000000..ecd5b7e --- /dev/null +++ b/xarray-0.15.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c72d160c970725201f769e80fb91cbad68d6ebf21d68fcc371385a6c950459c3 +size 1911362