From f445ddbc82371177b615bc7dfd896f2ed0f108e7faceaccb3ff16f831effdfd9 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sun, 9 May 2021 09:51:43 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=20version=200.18.0:=20=20-=20Th?= =?UTF-8?q?is=20release=20brings=20a=20few=20important=20performance=20imp?= =?UTF-8?q?rovements,=20a=20wide=20range=20of:=20=20-=20usability=20upgrad?= =?UTF-8?q?es,=20lots=20of=20bug=20fixes,=20and=20some=20new=20features.?= =?UTF-8?q?=20These=20include:=20=20-=20a=20plugin=20API=20to=20add=20back?= =?UTF-8?q?end=20engines,=20a=20new=20theme=20for=20the=20documentation,:?= =?UTF-8?q?=20=20-=20curve=20fitting=20methods,=20and=20several=20new=20pl?= =?UTF-8?q?otting=20functions.:=20=20-=20Many=20thanks=20to=20the=2038=20c?= =?UTF-8?q?ontributors=20to=20this=20release:=20Aaron=20Spring,=20Alessand?= =?UTF-8?q?ro=20Amici,:=20=20-=20Alex=20Marandon,=20Alistair=20Miles,=20An?= =?UTF-8?q?a=20Paula=20Krelling,=20Anderson=20Banihirwe,=20Aureliana=20Bar?= =?UTF-8?q?ghini,:=20=20-=20Baudouin=20Raoult,=20Benoit=20Bovy,=20Blair=20?= =?UTF-8?q?Bonnett,=20David=20Tr=C3=A9mouilles,=20Deepak=20Cherian,:=20=20?= =?UTF-8?q?-=20Gabriel=20Medeiros=20Abrah=C3=A3o,=20Giacomo=20Caria,=20Hau?= =?UTF-8?q?ke=20Schulz,=20Illviljan,=20Mathias=20Hauser,=20Matthias=20Buss?= =?UTF-8?q?onnier,:=20=20-=20Mattia=20Almansi,=20Maximilian=20Roos,=20Ray?= =?UTF-8?q?=20Bell,=20Richard=20Kleijn,=20Ryan=20Abernathey,=20Sam=20Levan?= =?UTF-8?q?g,=20Spencer=20Clark,:=20=20-=20Spencer=20Jones,=20Tammas=20Lou?= =?UTF-8?q?ghran,=20Tobias=20K=C3=B6lling,=20Todd,=20Tom=20Nicholas,=20Tom?= =?UTF-8?q?=20White,=20Victor=20Neg=C3=AErneac,:=20=20-=20Xianxiang=20Li,?= =?UTF-8?q?=20Zeb=20Nicholls,=20crusaderky,=20dschwoerer,=20johnomotani,?= =?UTF-8?q?=20keewis:=20=20-=20New=20Features:=20=20=20-=20apply=20``combi?= =?UTF-8?q?ne=5Fattrs``=20on=20data=20variables=20and=20coordinate=20varia?= =?UTF-8?q?bles=20when=20concatenating=20=20=20=20=20and=20merging=20datas?= =?UTF-8?q?ets=20and=20dataarrays=20(:pull:`4902`).=20=20=20=20=20By=20`Ju?= =?UTF-8?q?stus=20Magin=20`=5F.=20=20=20-=20Add?= =?UTF-8?q?=20:py:meth:`Dataset.to=5Fpandas`=20(:pull:`5247`)=20=20=20=20?= =?UTF-8?q?=20By=20`Giacomo=20Caria=20`=5F.=20?= =?UTF-8?q?=20=20-=20Add=20:py:meth:`DataArray.plot.surface`=20which=20wra?= =?UTF-8?q?ps=20matplotlib's=20`plot=5Fsurface`=20to=20make=20=20=20=20=20?= =?UTF-8?q?surface=20plots=20(:issue:`2235`=20:issue:`5084`=20:pull:`5101`?= =?UTF-8?q?).=20=20=20=20=20By=20`John=20Omotani=20`=5F.=20=20=20-=20Allow=20passing=20multiple=20arrays?= =?UTF-8?q?=20to=20:py:meth:`Dataset.=5F=5Fsetitem=5F=5F`=20(:pull:`5216`)?= =?UTF-8?q?.=20=20=20=20=20By=20`Giacomo=20Caria=20`=5F.=20=20=20-=20Add=20'cumulative'=20option=20to=20:py:me?= =?UTF-8?q?th:`Dataset.integrate`=20and=20=20=20=20=20:py:meth:`DataArray.?= =?UTF-8?q?integrate`=20so=20that=20result=20is=20a=20cumulative=20integra?= =?UTF-8?q?l,=20like=20=20=20=20=20:py:func:`scipy.integrate.cumulative=5F?= =?UTF-8?q?trapezoidal`=20(:pull:`5153`).=20=20=20=20=20By=20`John=20Omota?= =?UTF-8?q?ni=20`=5F.=20=20=20-=20Add=20``?= =?UTF-8?q?safe=5Fchunks``=20option=20to=20:py:meth:`Dataset.to=5Fzarr`=20?= =?UTF-8?q?which=20allows=20overriding=20=20=20=20=20checks=20made=20to=20?= =?UTF-8?q?ensure=20Dask=20and=20Zarr=20chunk=20compatibility=20(:issue:`5?= =?UTF-8?q?056`).=20=20=20=20=20By=20`Ryan=20Abernathey=20`=5F?= 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=48 --- python-xarray.changes | 205 ++++++++++++++++++++++++++++++++++++++++++ python-xarray.spec | 2 +- xarray-0.17.0.tar.gz | 3 - xarray-0.18.0.tar.gz | 3 + 4 files changed, 209 insertions(+), 4 deletions(-) delete mode 100644 xarray-0.17.0.tar.gz create mode 100644 xarray-0.18.0.tar.gz diff --git a/python-xarray.changes b/python-xarray.changes index b8afdce..03b7225 100644 --- a/python-xarray.changes +++ b/python-xarray.changes @@ -1,3 +1,208 @@ +------------------------------------------------------------------- +Sun May 9 09:46:42 UTC 2021 - Sebastian Wagner + +- update to version 0.18.0: + - This release brings a few important performance improvements, a wide range of: + - usability upgrades, lots of bug fixes, and some new features. These include: + - a plugin API to add backend engines, a new theme for the documentation,: + - curve fitting methods, and several new plotting functions.: + - Many thanks to the 38 contributors to this release: Aaron Spring, Alessandro Amici,: + - Alex Marandon, Alistair Miles, Ana Paula Krelling, Anderson Banihirwe, Aureliana Barghini,: + - Baudouin Raoult, Benoit Bovy, Blair Bonnett, David Trémouilles, Deepak Cherian,: + - Gabriel Medeiros Abrahão, Giacomo Caria, Hauke Schulz, Illviljan, Mathias Hauser, Matthias Bussonnier,: + - Mattia Almansi, Maximilian Roos, Ray Bell, Richard Kleijn, Ryan Abernathey, Sam Levang, Spencer Clark,: + - Spencer Jones, Tammas Loughran, Tobias Kölling, Todd, Tom Nicholas, Tom White, Victor Negîrneac,: + - Xianxiang Li, Zeb Nicholls, crusaderky, dschwoerer, johnomotani, keewis: + - New Features: + - apply ``combine_attrs`` on data variables and coordinate variables when concatenating + and merging datasets and dataarrays (:pull:`4902`). + By `Justus Magin `_. + - Add :py:meth:`Dataset.to_pandas` (:pull:`5247`) + By `Giacomo Caria `_. + - Add :py:meth:`DataArray.plot.surface` which wraps matplotlib's `plot_surface` to make + surface plots (:issue:`2235` :issue:`5084` :pull:`5101`). + By `John Omotani `_. + - Allow passing multiple arrays to :py:meth:`Dataset.__setitem__` (:pull:`5216`). + By `Giacomo Caria `_. + - Add 'cumulative' option to :py:meth:`Dataset.integrate` and + :py:meth:`DataArray.integrate` so that result is a cumulative integral, like + :py:func:`scipy.integrate.cumulative_trapezoidal` (:pull:`5153`). + By `John Omotani `_. + - Add ``safe_chunks`` option to :py:meth:`Dataset.to_zarr` which allows overriding + checks made to ensure Dask and Zarr chunk compatibility (:issue:`5056`). + By `Ryan Abernathey `_ + - Add :py:meth:`Dataset.query` and :py:meth:`DataArray.query` which enable indexing + of datasets and data arrays by evaluating query expressions against the values of the + data variables (:pull:`4984`). + By `Alistair Miles `_. + - Allow passing ``combine_attrs`` to :py:meth:`Dataset.merge` (:pull:`4895`). + By `Justus Magin `_. + - Support for `dask.graph_manipulation + `_ (requires dask >=2021.3) + By `Guido Imperiale `_ + - Add :py:meth:`Dataset.plot.streamplot` for streamplot plots with :py:class:`Dataset` + variables (:pull:`5003`). + By `John Omotani `_. + - Many of the arguments for the :py:attr:`DataArray.str` methods now support + providing an array-like input. In this case, the array provided to the + arguments is broadcast against the original array and applied elementwise. + - :py:attr:`DataArray.str` now supports ``+``, ``*``, and ``%`` operators. These + behave the same as they do for :py:class:`str`, except that they follow + array broadcasting rules. + - A large number of new :py:attr:`DataArray.str` methods were implemented, + :py:meth:`DataArray.str.casefold`, :py:meth:`DataArray.str.cat`, + :py:meth:`DataArray.str.extract`, :py:meth:`DataArray.str.extractall`, + :py:meth:`DataArray.str.findall`, :py:meth:`DataArray.str.format`, + :py:meth:`DataArray.str.get_dummies`, :py:meth:`DataArray.str.islower`, + :py:meth:`DataArray.str.join`, :py:meth:`DataArray.str.normalize`, + :py:meth:`DataArray.str.partition`, :py:meth:`DataArray.str.rpartition`, + :py:meth:`DataArray.str.rsplit`, and :py:meth:`DataArray.str.split`. + A number of these methods allow for splitting or joining the strings in an + array. (:issue:`4622`) + By `Todd Jennings `_ + - Thanks to the new pluggable backend infrastructure external packages may now + use the ``xarray.backends`` entry point to register additional engines to be used in + :py:func:`open_dataset`, see the documentation in :ref:`add_a_backend` + (:issue:`4309`, :issue:`4803`, :pull:`4989`, :pull:`4810` and many others). + The backend refactor has been sponsored with the "Essential Open Source Software for Science" + grant from the `Chan Zuckerberg Initiative `_ and + developed by `B-Open `_. + By `Aureliana Barghini `_ and `Alessandro Amici `_. + - :py:attr:`~core.accessor_dt.DatetimeAccessor.date` added (:issue:`4983`, :pull:`4994`). + By `Hauke Schulz `_. + - Implement ``__getitem__`` for both :py:class:`~core.groupby.DatasetGroupBy` and + :py:class:`~core.groupby.DataArrayGroupBy`, inspired by pandas' + :py:meth:`~pandas.core.groupby.GroupBy.get_group`. + By `Deepak Cherian `_. + - Switch the tutorial functions to use `pooch `_ + (which is now a optional dependency) and add :py:func:`tutorial.open_rasterio` as a + way to open example rasterio files (:issue:`3986`, :pull:`4102`, :pull:`5074`). + By `Justus Magin `_. + - Add typing information to unary and binary arithmetic operators operating on + :py:class:`Dataset`, :py:class:`DataArray`, :py:class:`Variable`, + :py:class:`~core.groupby.DatasetGroupBy` or + :py:class:`~core.groupby.DataArrayGroupBy` (:pull:`4904`). + By `Richard Kleijn `_. + - Add a ``combine_attrs`` parameter to :py:func:`open_mfdataset` (:pull:`4971`). + By `Justus Magin `_. + - Enable passing arrays with a subset of dimensions to + :py:meth:`DataArray.clip` & :py:meth:`Dataset.clip`; these methods now use + :py:func:`xarray.apply_ufunc`; (:pull:`5184`). + By `Maximilian Roos `_. + - Disable the `cfgrib` backend if the `eccodes` library is not installed (:pull:`5083`). + By `Baudouin Raoult `_. + - Added :py:meth:`DataArray.curvefit` and :py:meth:`Dataset.curvefit` for general curve fitting applications. (:issue:`4300`, :pull:`4849`) + By `Sam Levang `_. + - Add options to control expand/collapse of sections in display of Dataset and + DataArray. The function :py:func:`set_options` now takes keyword aguments + ``display_expand_attrs``, ``display_expand_coords``, ``display_expand_data``, + ``display_expand_data_vars``, all of which can be one of ``True`` to always + expand, ``False`` to always collapse, or ``default`` to expand unless over a + pre-defined limit (:pull:`5126`). + By `Tom White `_. + - Significant speedups in :py:meth:`Dataset.interp` and :py:meth:`DataArray.interp`. + (:issue:`4739`, :pull:`4740`). + By `Deepak Cherian `_. + - Prevent passing `concat_dim` to :py:func:`xarray.open_mfdataset` when + `combine='by_coords'` is specified, which should never have been possible (as + :py:func:`xarray.combine_by_coords` has no `concat_dim` argument to pass to). + Also removes unneeded internal reordering of datasets in + :py:func:`xarray.open_mfdataset` when `combine='by_coords'` is specified. + Fixes (:issue:`5230`). + By `Tom Nicholas `_. + - Implement ``__setitem__`` for ``xarray.core.indexing.DaskIndexingAdapter`` if + dask version supports item assignment. (:issue:`5171`, :pull:`5174`) + By `Tammas Loughran `_. + - Breaking changes: + - The minimum versions of some dependencies were changed: + ============ ====== ==== + Package Old New + ============ ====== ==== + boto3 1.12 1.13 + cftime 1.0 1.1 + dask 2.11 2.15 + distributed 2.11 2.15 + matplotlib 3.1 3.2 + numba 0.48 0.49 + ============ ====== ==== + - :py:func:`open_dataset` and :py:func:`open_dataarray` now accept only the first argument + as positional, all others need to be passed are keyword arguments. This is part of the + refactor to support external backends (:issue:`4309`, :pull:`4989`). + By `Alessandro Amici `_. + - Functions that are identities for 0d data return the unchanged data + if axis is empty. This ensures that Datasets where some variables do + not have the averaged dimensions are not accidentially changed + (:issue:`4885`, :pull:`5207`). + By `David Schwörer `_. + - :py:attr:`DataArray.coarsen` and :py:attr:`Dataset.coarsen` no longer support passing ``keep_attrs`` + via its constructor. Pass ``keep_attrs`` via the applied function, i.e. use + ``ds.coarsen(...).mean(keep_attrs=False)`` instead of ``ds.coarsen(..., keep_attrs=False).mean()``. + Further, coarsen now keeps attributes per default (:pull:`5227`). + By `Mathias Hauser `_. + - switch the default of the :py:func:`merge` ``combine_attrs`` parameter to + ``"override"``. This will keep the current behavior for merging the ``attrs`` of + variables but stop dropping the ``attrs`` of the main objects (:pull:`4902`). + By `Justus Magin `_. + - Deprecations: + - Warn when passing `concat_dim` to :py:func:`xarray.open_mfdataset` when + `combine='by_coords'` is specified, which should never have been possible (as + :py:func:`xarray.combine_by_coords` has no `concat_dim` argument to pass to). + Also removes unneeded internal reordering of datasets in + :py:func:`xarray.open_mfdataset` when `combine='by_coords'` is specified. + Fixes (:issue:`5230`), via (:pull:`5231`, :pull:`5255`). + By `Tom Nicholas `_. + - The `lock` keyword argument to :py:func:`open_dataset` and :py:func:`open_dataarray` is now + a backend specific option. It will give a warning if passed to a backend that doesn't support it + instead of being silently ignored. From the next version it will raise an error. + This is part of the refactor to support external backends (:issue:`5073`). + By `Tom Nicholas `_ and `Alessandro Amici `_. + - Bug fixes: + - Properly support :py:meth:`DataArray.ffill`, :py:meth:`DataArray.bfill`, :py:meth:`Dataset.ffill`, :py:meth:`Dataset.bfill` along chunked dimensions. + (:issue:`2699`). + By `Deepak Cherian `_. + - Fix 2d plot failure for certain combinations of dimensions when `x` is 1d and `y` is + 2d (:issue:`5097`, :pull:`5099`). + By `John Omotani `_. + - Ensure standard calendar times encoded with large values (i.e. greater than + approximately 292 years), can be decoded correctly without silently overflowing + (:pull:`5050`). This was a regression in xarray 0.17.0. + By `Zeb Nicholls `_. + - Added support for `numpy.bool_` attributes in roundtrips using `h5netcdf` engine with `invalid_netcdf=True` [which casts `bool`s to `numpy.bool_`] (:issue:`4981`, :pull:`4986`). + By `Victor Negîrneac `_. + - Don't allow passing ``axis`` to :py:meth:`Dataset.reduce` methods (:issue:`3510`, :pull:`4940`). + By `Justus Magin `_. + - Decode values as signed if attribute `_Unsigned = "false"` (:issue:`4954`) + By `Tobias Kölling `_. + - Keep coords attributes when interpolating when the indexer is not a Variable. (:issue:`4239`, :issue:`4839` :pull:`5031`) + By `Jimmy Westling `_. + - Ensure standard calendar dates encoded with a calendar attribute with some or + all uppercase letters can be decoded or encoded to or from + ``np.datetime64[ns]`` dates with or without ``cftime`` installed + (:issue:`5093`, :pull:`5180`). By `Spencer Clark + `_. + - Warn on passing ``keep_attrs`` to ``resample`` and ``rolling_exp`` as they are ignored, pass ``keep_attrs`` + to the applied function instead (:pull:`5265`). By `Mathias Hauser `_. + (:issue:`5093`, :pull:`5180`). + By `Spencer Clark `_. + - Documentation: + - New section on :ref:`add_a_backend` in the "Internals" chapter aimed to backend developers + (:issue:`4803`, :pull:`4810`). + By `Aureliana Barghini `_. + - Add :py:meth:`Dataset.polyfit` and :py:meth:`DataArray.polyfit` under "See also" in + the docstrings of :py:meth:`Dataset.polyfit` and :py:meth:`DataArray.polyfit` + (:issue:`5016`, :pull:`5020`). + By `Aaron Spring `_. + - New sphinx theme & rearrangement of the docs (:pull:`4835`). + By `Anderson Banihirwe `_. + - Internal Changes: + - Enable displaying mypy error codes and ignore only specific error codes using + ``# type: ignore[error-code]`` (:pull:`5096`). + By `Mathias Hauser `_. + - Replace uses of ``raises_regex`` with the more standard + ``pytest.raises(Exception, match="foo")``; + (:pull:`5188`), (:pull:`5191`). + By `Maximilian Roos `_. + ------------------------------------------------------------------- Sat Feb 27 14:38:41 UTC 2021 - Sebastian Wagner diff --git a/python-xarray.spec b/python-xarray.spec index d6c4ed8..533ab1c 100644 --- a/python-xarray.spec +++ b/python-xarray.spec @@ -21,7 +21,7 @@ # NEP 29: Numpy 1.20 dropped support for Python 3.6, python36-numpy is removed from Tumbleweed. xarray will follow on next release %define skip_python36 1 Name: python-xarray -Version: 0.17.0 +Version: 0.18.0 Release: 0 Summary: N-D labeled arrays and datasets in Python License: Apache-2.0 diff --git a/xarray-0.17.0.tar.gz b/xarray-0.17.0.tar.gz deleted file mode 100644 index f01193f..0000000 --- a/xarray-0.17.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9c2edad2a4e588f9117c666a4249920b9717fb75703b96998cf65fcd4f60551f -size 2055584 diff --git a/xarray-0.18.0.tar.gz b/xarray-0.18.0.tar.gz new file mode 100644 index 0000000..5f83589 --- /dev/null +++ b/xarray-0.18.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0b0d24ee43db2bec14a95503266c81181586174004d1b60860c1091e4f74ac8 +size 2843270