Commit Graph

111 Commits

Author SHA256 Message Date
Sebastian Wagner
212f4916d9 Accepting request 920894 from home:bnavigator:branches:devel:languages:python:numeric
- Tests require dask[diagnostics] extra now (for Jinja2)

OBS-URL: https://build.opensuse.org/request/show/920894
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=58
2021-09-22 22:43:17 +00:00
Dominique Leuenberger
1f00d7c3c9 Accepting request 913397 from devel:languages:python:numeric
- remove xarray-pr5449-dask-meta.patch, merged upstream.
- remove test_resample_loffset.patch, merged upstream.
- update to version 0.19.0:
 - This release brings improvements to plotting of categorical data, the ability to specify how attributes:
 - are combined in xarray operations, a new high-level :py:func:`unify_chunks` function, as well as various:
 - deprecations, bug fixes, and minor improvements.:
 - Many thanks to the 29 contributors to this release!:
 - Andrew Williams, Augustus, Aureliana Barghini, Benoit Bovy, crusaderky, Deepak Cherian, ellesmith88,:
 - Elliott Sales de Andrade, Giacomo Caria, github-actions[bot], Illviljan, Joeperdefloep, joooeey, Julia Kent,:
 - Julius Busecke, keewis, Mathias Hauser, Matthias Göbel, Mattia Almansi, Maximilian Roos, Peter Andreas Entschev,:
 - Ray Bell, Sander, Santiago Soler, Sebastian, Spencer Clark, Stephan Hoyer, Thomas Hirtz, Thomas Nicholas.:
 - New Features:
  - Allow passing argument ``missing_dims`` to :py:meth:`Variable.transpose` and :py:meth:`Dataset.transpose`
    (:issue:`5550`, :pull:`5586`)
    By `Giacomo Caria <https://github.com/gcaria>`_.
  - Allow passing a dictionary as coords to a :py:class:`DataArray` (:issue:`5527`,
    reverts :pull:`1539`, which had deprecated this due to python's inconsistent ordering in earlier versions).
    By `Sander van Rijn <https://github.com/sjvrijn>`_.
  - Added :py:meth:`Dataset.coarsen.construct`, :py:meth:`DataArray.coarsen.construct` (:issue:`5454`, :pull:`5475`).
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - Xarray now uses consolidated metadata by default when writing and reading Zarr
    stores (:issue:`5251`).
    By `Stephan Hoyer <https://github.com/shoyer>`_.
  - New top-level function :py:func:`unify_chunks`.
    By `Mattia Almansi <https://github.com/malmans2>`_.
  - Allow assigning values to a subset of a dataset using positional or label-based
    indexing (:issue:`3015`, :pull:`5362`).
    By `Matthias Göbel <https://github.com/matzegoebel>`_.
  - Attempting to reduce a weighted object over missing dimensions now raises an error (:pull:`5362`).
    By `Mattia Almansi <https://github.com/malmans2>`_.

OBS-URL: https://build.opensuse.org/request/show/913397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=29
2021-08-23 08:08:07 +00:00
Sebastian Wagner
379c2f46f7 really remove obsolete test_resample_loffset.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=57
2021-08-20 19:51:31 +00:00
Sebastian Wagner
1b835a8f4a - remove xarray-pr5449-dask-meta.patch, merged upstream.
- remove test_resample_loffset.patch, merged upstream.
- update to version 0.19.0:
 - This release brings improvements to plotting of categorical data, the ability to specify how attributes:
 - are combined in xarray operations, a new high-level :py:func:`unify_chunks` function, as well as various:
 - deprecations, bug fixes, and minor improvements.:
 - Many thanks to the 29 contributors to this release!:
 - Andrew Williams, Augustus, Aureliana Barghini, Benoit Bovy, crusaderky, Deepak Cherian, ellesmith88,:
 - Elliott Sales de Andrade, Giacomo Caria, github-actions[bot], Illviljan, Joeperdefloep, joooeey, Julia Kent,:
 - Julius Busecke, keewis, Mathias Hauser, Matthias Göbel, Mattia Almansi, Maximilian Roos, Peter Andreas Entschev,:
 - Ray Bell, Sander, Santiago Soler, Sebastian, Spencer Clark, Stephan Hoyer, Thomas Hirtz, Thomas Nicholas.:
 - New Features:
  - Allow passing argument ``missing_dims`` to :py:meth:`Variable.transpose` and :py:meth:`Dataset.transpose`
    (:issue:`5550`, :pull:`5586`)
    By `Giacomo Caria <https://github.com/gcaria>`_.
  - Allow passing a dictionary as coords to a :py:class:`DataArray` (:issue:`5527`,
    reverts :pull:`1539`, which had deprecated this due to python's inconsistent ordering in earlier versions).
    By `Sander van Rijn <https://github.com/sjvrijn>`_.
  - Added :py:meth:`Dataset.coarsen.construct`, :py:meth:`DataArray.coarsen.construct` (:issue:`5454`, :pull:`5475`).
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - Xarray now uses consolidated metadata by default when writing and reading Zarr
    stores (:issue:`5251`).
    By `Stephan Hoyer <https://github.com/shoyer>`_.
  - New top-level function :py:func:`unify_chunks`.
    By `Mattia Almansi <https://github.com/malmans2>`_.
  - Allow assigning values to a subset of a dataset using positional or label-based
    indexing (:issue:`3015`, :pull:`5362`).
    By `Matthias Göbel <https://github.com/matzegoebel>`_.
  - Attempting to reduce a weighted object over missing dimensions now raises an error (:pull:`5362`).
    By `Mattia Almansi <https://github.com/malmans2>`_.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=56
2021-07-27 13:28:20 +00:00
Dominique Leuenberger
c4f8789442 Accepting request 906784 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/906784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=28
2021-07-17 21:36:43 +00:00
Sebastian Wagner
23dcca268c Accepting request 906712 from home:bnavigator:branches:devel:languages:python:numeric
- Add xarray-pr5449-dask-meta.patch in order to support updated
  dask -- gh#pydata/xarray#5449

OBS-URL: https://build.opensuse.org/request/show/906712
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=55
2021-07-17 07:33:42 +00:00
Dominique Leuenberger
30293b5044 Accepting request 895658 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/895658
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=27
2021-06-01 08:35:00 +00:00
Sebastian Wagner
15f5c83eeb Accepting request 895529 from home:mcepl:branches:devel:languages:python:numeric
- Add local_dataset.patch allowing the use of the cached datasets
  (gh#pydata/xarray#5377).
- Add scipy-interpolate.patch adding a missing import
  scipy.interpolate to test_interp.py (gh#pydata/xarray#5375).
- Add test_resample_loffset.patch to fix test_resample_loffset
  test (gh#pydata/xarray#5364).

OBS-URL: https://build.opensuse.org/request/show/895529
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=53
2021-05-27 06:19:25 +00:00
Sebastian Wagner
18833ec076 - update to version 0.18.2:
- This release reverts a regression in xarray's unstacking of dask-backed arrays.:
- remove fix_test_resample_loffset.patch, doesn't work

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=52
2021-05-21 15:59:35 +00:00
Sebastian Wagner
a3858e8c38 - add fix_test_resample_loffset.patch to fix test fail on i586
https://github.com/pydata/xarray/issues/5341

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=51
2021-05-19 13:55:17 +00:00
Sebastian Wagner
76fa4fe490 - update to version 0.18.1:
- This release is intended as a small patch release to be compatible with the new:
2021.5.0 ``dask.distributed`` release. It also includes a new
``drop_duplicates`` method, some documentation improvements, the beginnings of
 - our internal Index refactoring, and some bug fixes.:
 - Thank you to all 16 contributors!:
 - Anderson Banihirwe, Andrew, Benoit Bovy, Brewster Malevich, Giacomo Caria,:
 - Illviljan, James Bourbeau, Keewis, Maximilian Roos, Ravin Kumar, Stephan Hoyer,:
 - Thomas Nicholas, Tom Nicholas, Zachary Moon.:
 - New Features:
  - Implement :py:meth:`DataArray.drop_duplicates`
    to remove duplicate dimension values (:pull:`5239`).
    By `Andrew Huang <https://github.com/ahuang11>`_.
  - Allow passing ``combine_attrs`` strategy names to the ``keep_attrs`` parameter of
    :py:func:`apply_ufunc` (:pull:`5041`)
    By `Justus Magin <https://github.com/keewis>`_.
  - :py:meth:`Dataset.interp` now allows interpolation with non-numerical datatypes,
    such as booleans, instead of dropping them. (:issue:`4761` :pull:`5008`).
    By `Jimmy Westling <https://github.com/illviljan>`_.
  - Raise more informative error when decoding time variables with invalid reference dates.
    (:issue:`5199`, :pull:`5288`). By `Giacomo Caria <https://github.com/gcaria>`_.
 - Bug fixes:
  - Opening netCDF files from a path that doesn't end in ``.nc`` without supplying
    an explicit ``engine`` works again (:issue:`5295`), fixing a bug introduced in
    0.18.0.
    By `Stephan Hoyer <https://github.com/shoyer>`_
 - Documentation:
  - Clean up and enhance docstrings for the :py:class:`DataArray.plot` and ``Dataset.plot.*``
    families of methods (:pull:`5285`).
    By `Zach Moon <https://github.com/zmoon>`_.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=50
2021-05-19 07:28:12 +00:00
Dominique Leuenberger
7059922d67 Accepting request 893451 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/893451
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=26
2021-05-16 21:41:58 +00:00
Sebastian Wagner
f445ddbc82 - 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 <https://github.com/keewis>`_.
  - Add :py:meth:`Dataset.to_pandas` (:pull:`5247`)
    By `Giacomo Caria <https://github.com/gcaria>`_.
  - 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 <https://github.com/johnomotani>`_.
  - Allow passing multiple arrays to :py:meth:`Dataset.__setitem__` (:pull:`5216`).
    By `Giacomo Caria <https://github.com/gcaria>`_.
  - 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 <https://github.com/johnomotani>`_.
  - 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 <https://github.com/rabernat>`_

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=48
2021-05-09 09:51:43 +00:00
Dominique Leuenberger
af81b358d9 Accepting request 877405 from devel:languages:python:numeric
- update to version 0.17.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:
 - better ``cftime`` support, a new quiver plot, better ``unstack`` performance,:
 - more efficient memory use in rolling operations, and some python packaging:
 - improvements. We also have a few documentation improvements (and more planned!).:
 - Many thanks to the 36 contributors to this release: Alessandro Amici, Anderson:
 - Banihirwe, Aureliana Barghini, Ayrton Bourn, Benjamin Bean, Blair Bonnett, Chun:
 - Ho Chow, DWesl, Daniel Mesejo-León, Deepak Cherian, Eric Keenan, Illviljan, Jens:
 - Hedegaard Nielsen, Jody Klymak, Julien Seguinot, Julius Busecke, Kai Mühlbauer,:
 - Leif Denby, Martin Durant, Mathias Hauser, Maximilian Roos, Michael Mann, Ray:
 - Bell, RichardScottOZ, Spencer Clark, Tim Gates, Tom Nicholas, Yunus Sevinchan,:
 - alexamici, aurghs, crusaderky, dcherian, ghislainp, keewis, rhkleijn:
 - Breaking changes:
  - xarray no longer supports python 3.6
    The minimum version policy was changed to also apply to projects with irregular
    releases. As a result, the minimum versions of some dependencies have changed:
    ============ ====== ====
    Package      Old    New
    ============ ====== ====
    Python       3.6    3.7
    setuptools   38.4   40.4
    numpy        1.15   1.17
    pandas       0.25   1.0
    dask         2.9    2.11
    distributed  2.9    2.11
    bottleneck   1.2    1.3
    h5netcdf     0.7    0.8
    iris         2.2    2.4
    netcdf4      1.4    1.5
    pseudonetcdf 3.0    3.1
    rasterio     1.0    1.1
    scipy        1.3    1.4
    seaborn      0.9    0.10
    zarr         2.3    2.4
    ============ ====== ====
    (:issue:`4688`, :pull:`4720`, :pull:`4907`, :pull:`4942`)
  - As a result of :pull:`4684` the default units encoding for
    datetime-like values (``np.datetime64[ns]`` or ``cftime.datetime``) will now
    always be set such that ``int64`` values can be used.  In the past, no units
    finer than "seconds" were chosen, which would sometimes mean that ``float64``
    values were required, which would lead to inaccurate I/O round-trips.
  - Variables referred to in attributes like ``bounds`` and ``grid_mapping``
    can be set as coordinate variables. These attributes are moved to
    :py:attr:`DataArray.encoding` from :py:attr:`DataArray.attrs`. This behaviour
    is controlled by the ``decode_coords`` kwarg to :py:func:`open_dataset` and
    :py:func:`open_mfdataset`.  The full list of decoded attributes is in
    :ref:`weather-climate` (:pull:`2844`, :issue:`3689`)
  - As a result of :pull:`4911` the output from calling :py:meth:`DataArray.sum`
    or :py:meth:`DataArray.prod` on an integer array with ``skipna=True`` and a
    non-None value for ``min_count`` will now be a float array rather than an
    integer array.
 - Deprecations:
  - ``dim`` argument to :py:meth:`DataArray.integrate` is being deprecated in
    favour of a ``coord`` argument, for consistency with :py:meth:`Dataset.integrate`.
    For now using ``dim`` issues a ``FutureWarning``. It will be removed in
    version 0.19.0 (:pull:`3993`).
    By `Tom Nicholas <https://github.com/TomNicholas>`_.
  - Deprecated ``autoclose`` kwargs from :py:func:`open_dataset` are removed (:pull:`4725`).
    By `Aureliana Barghini <https://github.com/aurghs>`_.
  - the return value of :py:meth:`Dataset.update` is being deprecated to make it work more
    like :py:meth:`dict.update`. It will be removed in version 0.19.0 (:pull:`4932`).
    By `Justus Magin <https://github.com/keewis>`_.
 - New Features:
  - :py:meth:`~xarray.cftime_range` and :py:meth:`DataArray.resample` now support
    millisecond (``"L"`` or ``"ms"``) and microsecond (``"U"`` or ``"us"``) frequencies
    for ``cftime.datetime`` coordinates (:issue:`4097`, :pull:`4758`).
    By `Spencer Clark <https://github.com/spencerkclark>`_.
  - Significantly higher ``unstack`` performance on numpy-backed arrays which
    contain missing values; 8x faster than previous versions in our benchmark, and
    now 2x faster than pandas (:pull:`4746`).
    By `Maximilian Roos <https://github.com/max-sixty>`_.
  - Add :py:meth:`Dataset.plot.quiver` for quiver plots with :py:class:`Dataset` variables.
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - Add ``"drop_conflicts"`` to the strategies supported by the ``combine_attrs`` kwarg
    (:issue:`4749`, :pull:`4827`).
    By `Justus Magin <https://github.com/keewis>`_.
  - Allow installing from git archives (:pull:`4897`).
    By `Justus Magin <https://github.com/keewis>`_.
  - :py:class:`DataArrayCoarsen` and :py:class:`DatasetCoarsen` now implement a
    ``reduce`` method, enabling coarsening operations with custom reduction
    functions (:issue:`3741`, :pull:`4939`).  By `Spencer Clark
    <https://github.com/spencerkclark>`_.
  - Most rolling operations use significantly less memory. (:issue:`4325`).
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - Add :py:meth:`Dataset.drop_isel` and :py:meth:`DataArray.drop_isel`
    (:issue:`4658`, :pull:`4819`).
    By `Daniel Mesejo <https://github.com/mesejo>`_.
  - Xarray now leverages updates as of cftime version 1.4.1, which enable exact I/O
    roundtripping of ``cftime.datetime`` objects (:pull:`4758`).
    By `Spencer Clark <https://github.com/spencerkclark>`_.
  - :py:func:`open_dataset` and :py:func:`open_mfdataset` now accept ``fsspec`` URLs
    (including globs for the latter) for ``engine="zarr"``, and so allow reading from
    many remote and other file systems (:pull:`4461`)
    By `Martin Durant <https://github.com/martindurant>`_
  - :py:meth:`DataArray.swap_dims` & :py:meth:`Dataset.swap_dims` now accept dims
    in the form of kwargs as well as a dict, like most similar methods.
    By `Maximilian Roos <https://github.com/max-sixty>`_.
 - Bug fixes:
  - Use specific type checks in
    :py:func:`~xarray.core.variable.as_compatible_data` instead of blanket
    access to ``values`` attribute (:issue:`2097`)
    By `Yunus Sevinchan <https://github.com/blsqr>`_.
  - :py:meth:`DataArray.resample` and :py:meth:`Dataset.resample` do not trigger
    computations anymore if :py:meth:`Dataset.weighted` or
    :py:meth:`DataArray.weighted` are applied (:issue:`4625`, :pull:`4668`). By
    `Julius Busecke <https://github.com/jbusecke>`_.
  - :py:func:`merge` with ``combine_attrs='override'`` makes a copy of the attrs
    (:issue:`4627`).
  - By default, when possible, xarray will now always use values of
    type ``int64`` when encoding and decoding ``numpy.datetime64[ns]`` datetimes.  This
    ensures that maximum precision and accuracy are maintained in the round-tripping
    process (:issue:`4045`, :pull:`4684`). It also enables encoding and decoding standard
    calendar dates with time units of nanoseconds (:pull:`4400`).
    By `Spencer Clark <https://github.com/spencerkclark>`_ and `Mark Harfouche
    <http://github.com/hmaarrfk>`_.
  - :py:meth:`DataArray.astype`, :py:meth:`Dataset.astype` and :py:meth:`Variable.astype` support
    the ``order`` and ``subok`` parameters again. This fixes a regression introduced in version 0.16.1
    (:issue:`4644`, :pull:`4683`).
    By `Richard Kleijn <https://github.com/rhkleijn>`_ .
  - Remove dictionary unpacking when using ``.loc`` to avoid collision with ``.sel`` parameters (:pull:`4695`).
    By `Anderson Banihirwe <https://github.com/andersy005>`_.
  - Fix the legend created by :py:meth:`Dataset.plot.scatter` (:issue:`4641`, :pull:`4723`).
    By `Justus Magin <https://github.com/keewis>`_.
  - Fix a crash in orthogonal indexing on geographic coordinates with ``engine='cfgrib'``
    (:issue:`4733` :pull:`4737`).
    By `Alessandro Amici <https://github.com/alexamici>`_.
  - Coordinates with dtype ``str`` or ``bytes`` now retain their dtype on many operations,
    e.g. ``reindex``, ``align``, ``concat``, ``assign``, previously they were cast to an object dtype
    (:issue:`2658` and :issue:`4543`).
    By `Mathias Hauser <https://github.com/mathause>`_.
  - Limit number of data rows when printing large datasets. (:issue:`4736`, :pull:`4750`).
    By `Jimmy Westling <https://github.com/illviljan>`_.
  - Add ``missing_dims`` parameter to transpose (:issue:`4647`, :pull:`4767`).
    By `Daniel Mesejo <https://github.com/mesejo>`_.
  - Resolve intervals before appending other metadata to labels when plotting (:issue:`4322`, :pull:`4794`).
    By `Justus Magin <https://github.com/keewis>`_.
  - Fix regression when decoding a variable with a ``scale_factor`` and ``add_offset`` given
    as a list of length one (:issue:`4631`) by `Mathias Hauser <https://github.com/mathause>`_.
  - Expand user directory paths (e.g. ``~/``) in :py:func:`open_mfdataset` and
    :py:meth:`Dataset.to_zarr` (:issue:`4783`, :pull:`4795`).
    By `Julien Seguinot <https://github.com/juseg>`_.
  - Raise DeprecationWarning when trying to typecast a tuple containing a :py:class:`DataArray`.
    User now prompted to first call `.data` on it (:issue:`4483`).
    By `Chun Ho Chow <https://github.com/chunhochow>`_.
  - Ensure that :py:meth:`Dataset.interp` raises ``ValueError`` when interpolating
    outside coordinate range and ``bounds_error=True`` (:issue:`4854`,
    :pull:`4855`).
    By `Leif Denby <https://github.com/leifdenby>`_.
  - Fix time encoding bug associated with using cftime versions greater than
    1.4.0 with xarray (:issue:`4870`, :pull:`4871`). By `Spencer Clark <https://github.com/spencerkclark>`_.
  - Stop :py:meth:`DataArray.sum` and :py:meth:`DataArray.prod` computing lazy
    arrays when called with a ``min_count`` parameter (:issue:`4898`, :pull:`4911`).
    By `Blair Bonnett <https://github.com/bcbnz>`_.
  - Fix bug preventing the ``min_count`` parameter to :py:meth:`DataArray.sum` and
    :py:meth:`DataArray.prod` working correctly when calculating over all axes of
    a float64 array (:issue:`4898`, :pull:`4911`). By `Blair Bonnett <https://github.com/bcbnz>`_.
  - Fix decoding of vlen strings using h5py versions greater than 3.0.0 with h5netcdf backend (:issue:`4570`, :pull:`4893`).
    By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
  - Allow converting :py:class:`Dataset` or :py:class:`DataArray` objects with a ``MultiIndex``
    and at least one other dimension to a ``pandas`` object (:issue:`3008`, :pull:`4442`).
    By `ghislainp <https://github.com/ghislainp>`_.
 - Documentation:
  - Add information about requirements for accessor classes (:issue:`2788`, :pull:`4657`).
    By `Justus Magin <https://github.com/keewis>`_.
  - Start a list of external I/O integrating with ``xarray`` (:issue:`683`, :pull:`4566`).
    By `Justus Magin <https://github.com/keewis>`_.
  - Add concat examples and improve combining documentation (:issue:`4620`, :pull:`4645`).
    By `Ray Bell <https://github.com/raybellwaves>`_ and
    `Justus Magin <https://github.com/keewis>`_.
  - explicitly mention that :py:meth:`Dataset.update` updates inplace (:issue:`2951`, :pull:`4932`).
    By `Justus Magin <https://github.com/keewis>`_.
  - Added docs on vectorized indexing (:pull:`4711`).
    By `Eric Keenan <https://github.com/EricKeenan>`_.
 - Internal Changes:
  - Speed up of the continuous integration tests on azure.
    - Switched to mamba and use matplotlib-base for a faster installation of all dependencies (:pull:`4672`).
    - Use ``pytest.mark.skip`` instead of ``pytest.mark.xfail`` for some tests that can currently not
      succeed (:pull:`4685`).
    - Run the tests in parallel using pytest-xdist (:pull:`4694`).
    By `Justus Magin <https://github.com/keewis>`_ and `Mathias Hauser <https://github.com/mathause>`_.
  - Use ``pyproject.toml`` instead of the ``setup_requires`` option for
    ``setuptools`` (:pull:`4897`).
    By `Justus Magin <https://github.com/keewis>`_.
  - Replace all usages of ``assert x.identical(y)`` with ``assert_identical(x,  y)``
    for clearer error messages (:pull:`4752`).
    By `Maximilian Roos <https://github.com/max-sixty>`_.
  - Speed up attribute style access (e.g. ``ds.somevar`` instead of ``ds["somevar"]``) and
    tab completion in IPython (:issue:`4741`, :pull:`4742`).
    By `Richard Kleijn <https://github.com/rhkleijn>`_.
  - Added the ``set_close`` method to ``Dataset`` and ``DataArray`` for backends
    to specify how to voluntary release all resources. (:pull:`#4809`)
    By `Alessandro Amici <https://github.com/alexamici>`_.
  - Update type hints to work with numpy v1.20 (:pull:`4878`).
    By `Mathias Hauser <https://github.com/mathause>`_.
  - Ensure warnings cannot be turned into exceptions in :py:func:`testing.assert_equal` and
    the other ``assert_*`` functions (:pull:`4864`).
    By `Mathias Hauser <https://github.com/mathause>`_.
  - Performance improvement when constructing DataArrays. Significantly speeds up
    repr for Datasets with large number of variables.
    By `Deepak Cherian <https://github.com/dcherian>`_.
- remove xarray-pr4884-dask2021.patch, was never applied and is included upstream.

OBS-URL: https://build.opensuse.org/request/show/877405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=25
2021-03-06 20:19:40 +00:00
Sebastian Wagner
9a88e6ba89 remove obsolete patchfile
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=46
2021-03-06 16:30:15 +00:00
Sebastian Wagner
cbf916e927 - update to version 0.17.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:
 - better ``cftime`` support, a new quiver plot, better ``unstack`` performance,:
 - more efficient memory use in rolling operations, and some python packaging:
 - improvements. We also have a few documentation improvements (and more planned!).:
 - Many thanks to the 36 contributors to this release: Alessandro Amici, Anderson:
 - Banihirwe, Aureliana Barghini, Ayrton Bourn, Benjamin Bean, Blair Bonnett, Chun:
 - Ho Chow, DWesl, Daniel Mesejo-León, Deepak Cherian, Eric Keenan, Illviljan, Jens:
 - Hedegaard Nielsen, Jody Klymak, Julien Seguinot, Julius Busecke, Kai Mühlbauer,:
 - Leif Denby, Martin Durant, Mathias Hauser, Maximilian Roos, Michael Mann, Ray:
 - Bell, RichardScottOZ, Spencer Clark, Tim Gates, Tom Nicholas, Yunus Sevinchan,:
 - alexamici, aurghs, crusaderky, dcherian, ghislainp, keewis, rhkleijn:
 - Breaking changes:
  - xarray no longer supports python 3.6
    The minimum version policy was changed to also apply to projects with irregular
    releases. As a result, the minimum versions of some dependencies have changed:
    ============ ====== ====
    Package      Old    New
    ============ ====== ====
    Python       3.6    3.7
    setuptools   38.4   40.4
    numpy        1.15   1.17
    pandas       0.25   1.0
    dask         2.9    2.11
    distributed  2.9    2.11
    bottleneck   1.2    1.3
    h5netcdf     0.7    0.8
    iris         2.2    2.4
    netcdf4      1.4    1.5

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=45
2021-02-27 14:45:12 +00:00
Dominique Leuenberger
0cd8baba42 Accepting request 872502 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/872502
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=24
2021-02-15 22:20:40 +00:00
ffcf88ca69 Accepting request 872458 from home:bnavigator:branches:devel:languages:python:numeric
- Disable python36 build: python36-numpy is no longer in Tumbleweed
  xarray will follow to drop Python 3.6 support on next release.
  (NEP 29)
- Add xarray-pr4884-dask2021.patch gh#pydata/xarray#4884
- Enable parralel testing with pytest-xdist
- Recommend/Suggest the extras

OBS-URL: https://build.opensuse.org/request/show/872458
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=43
2021-02-15 13:28:30 +00:00
Dominique Leuenberger
a7122de923 Accepting request 858872 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/858872
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=23
2020-12-27 23:28:46 +00:00
Sebastian Wagner
a574211654 - update to version 0.16.2:
- This release brings the ability to write to limited regions of ``zarr`` files, open zarr files with :py:func:`open_dataset` and :py:func:`open_mfdataset`, increased support for propagating ``attrs`` using the ``keep_attrs`` flag, as well as numerous bugfixes and documentation improvements.:
 - Deprecations:
  - :py:attr:`~core.accessor_dt.DatetimeAccessor.weekofyear` and :py:attr:`~core.accessor_dt.DatetimeAccessor.week`
    have been deprecated. Use ``DataArray.dt.isocalendar().week``
    instead (:pull:`4534`). By `Mathias Hauser <https://github.com/mathause>`_,
    `Maximilian Roos <https://github.com/max-sixty>`_, and `Spencer Clark <https://github.com/spencerkclark>`_.
  - :py:attr:`DataArray.rolling` and :py:attr:`Dataset.rolling` no longer support passing ``keep_attrs``
    via its constructor. Pass ``keep_attrs`` via the applied function, i.e. use
    ``ds.rolling(...).mean(keep_attrs=False)`` instead of ``ds.rolling(..., keep_attrs=False).mean()``
    Rolling operations now keep their attributes per default (:pull:`4510`).
    By `Mathias Hauser <https://github.com/mathause>`_.
 - New Features:
  - :py:func:`open_dataset` and :py:func:`open_mfdataset`
    now works with ``engine="zarr"`` (:issue:`3668`, :pull:`4003`, :pull:`4187`).
    By `Miguel Jimenez <https://github.com/Mikejmnez>`_ and `Wei Ji Leong <https://github.com/weiji14>`_.
  - Unary & binary operations follow the ``keep_attrs`` flag (:issue:`3490`, :issue:`4065`, :issue:`3433`, :issue:`3595`, :pull:`4195`).
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - Added :py:meth:`~core.accessor_dt.DatetimeAccessor.isocalendar()` that returns a Dataset
    with year, week, and weekday calculated according to the ISO 8601 calendar. Requires
    pandas version 1.1.0 or greater (:pull:`4534`). By `Mathias Hauser <https://github.com/mathause>`_,
    `Maximilian Roos <https://github.com/max-sixty>`_, and `Spencer Clark <https://github.com/spencerkclark>`_.
  - :py:meth:`Dataset.to_zarr` now supports a ``region`` keyword for writing to
    limited regions of existing Zarr stores (:pull:`4035`).
    See :ref:`io.zarr.appending` for full details.
    By `Stephan Hoyer <https://github.com/shoyer>`_.
  - Added typehints in :py:func:`align` to reflect that the same type received in ``objects`` arg will be returned (:pull:`4522`).
    By `Michal Baumgartner <https://github.com/m1so>`_.
  - :py:meth:`Dataset.weighted` and :py:meth:`DataArray.weighted` are now executing value checks lazily if weights are provided as dask arrays (:issue:`4541`, :pull:`4559`).
    By `Julius Busecke <https://github.com/jbusecke>`_.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=41
2020-12-20 16:14:36 +00:00
Dominique Leuenberger
dab04377d7 Accepting request 838685 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/838685
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=22
2020-09-30 17:54:30 +00:00
Sebastian Wagner
b82feb2bc8 - update to version 0.16.1:
- This patch release fixes an incompatability with a recent pandas change, which:
 - was causing an issue indexing with a ``datetime64``. It also includes:
 - improvements to ``rolling``, ``to_dataframe``, ``cov`` & ``corr`` methods and:
 - bug fixes. Our documentation has a number of improvements, including fixing all :
 - doctests and confirming their accuracy on every commit.:
 - Many thanks to the 36 contributors who contributed to this release:
 - Aaron Spring, Akio Taniguchi, Aleksandar Jelenak, Alexandre Poux,:
 - Caleb, Dan Nowacki, Deepak Cherian, Gerardo Rivera, Jacob Tomlinson, James A.:
 - Bednar, Joe Hamman, Julia Kent, Kai Mühlbauer, Keisuke Fujii, Mathias Hauser,:
 - Maximilian Roos, Nick R. Papior, Pascal Bourgault, Peter Hausamann, Romain:
 - Martinez, Russell Manser, Samnan Rahee, Sander, Spencer Clark, Stephan Hoyer,:
 - Thomas Zilio, Tobias Kölling, Tom Augspurger, alexamici, crusaderky, darikg,:
 - inakleinbottle, jenssss, johnomotani, keewis, and rpgoldman.:
 - Breaking changes:
  - :py:meth:`DataArray.astype` and :py:meth:`Dataset.astype` now preserve attributes. Keep the
    old behavior by passing `keep_attrs=False` (:issue:`2049`, :pull:`4314`).
    By `Dan Nowacki <https://github.com/dnowacki-usgs>`_ and `Gabriel Joel Mitchell <https://github.com/gajomi>`_.
 - New Features:
  - :py:meth:`~xarray.DataArray.rolling` and :py:meth:`~xarray.Dataset.rolling`
    now accept more than 1 dimension. (:pull:`4219`)
    By `Keisuke Fujii <https://github.com/fujiisoup>`_.
  - :py:meth:`~xarray.DataArray.to_dataframe` and :py:meth:`~xarray.Dataset.to_dataframe`
    now accept a ``dim_order`` parameter allowing to specify the resulting dataframe's
    dimensions order (:issue:`4331`, :pull:`4333`).
    By `Thomas Zilio <https://github.com/thomas-z>`_.
  - Support multiple outputs in :py:func:`xarray.apply_ufunc` when using
    ``dask='parallelized'``. (:issue:`1815`, :pull:`4060`).
    By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
  - ``min_count`` can be supplied to reductions such as ``.sum`` when specifying

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=39
2020-09-23 06:25:53 +00:00
Dominique Leuenberger
ec8724e2f2 Accepting request 821410 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/821410
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=21
2020-07-17 18:50:32 +00:00
Tomáš Chvátal
89ade1d8e8 Accepting request 821359 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to version 0.16.0
- Enable now-working tests

OBS-URL: https://build.opensuse.org/request/show/821359
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=37
2020-07-17 06:36:15 +00:00
Dominique Leuenberger
cac9dd71e2 Accepting request 795672 from devel:languages:python:numeric
- Package is py3 only -> drop py2 dependency

OBS-URL: https://build.opensuse.org/request/show/795672
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=20
2020-04-21 11:07:18 +00:00
Tomáš Chvátal
3bb1f5dca4 - Package is py3 only -> drop py2 dependency
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=35
2020-04-20 07:15:12 +00:00
Dominique Leuenberger
4c472546c0 Accepting request 789448 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/789448
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=19
2020-03-29 12:28:19 +00:00
Tomáš Chvátal
e6ceec4211 Accepting request 789380 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/789380
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=33
2020-03-29 07:06:28 +00:00
Dominique Leuenberger
9eb89ffcc4 Accepting request 770348 from devel:languages:python:numeric
- update to version 0.15.0:
 - This release brings many improvements to xarray's documentation: our examples are now binderized notebooks (`click here <https://mybinder.org/v2/gh/pydata/xarray/master?urlpath=lab/tree/doc/examples/weather-data.ipynb>`_):
 - 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 <https://github.com/max-sixty>`_.
  - :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 <https://github.com/mathause>`_.
 - New Features:
  - :py:meth:`DataArray.sel` and :py:meth:`Dataset.sel` now support :py:class:`pandas.CategoricalIndex`. (:issue:`3669`)
    By `Keisuke Fujii <https://github.com/fujiisoup>`_.
  - 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 <https://github.com/kmuehlbauer>`_.
  - Implement ``median`` and ``nanmedian`` for dask arrays. This works by rechunking
    to a single chunk along all reduction axes. (:issue:`2999`).
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - :py:func:`~xarray.concat` now preserves attributes from the first Variable.
    (:issue:`2575`, :issue:`2060`, :issue:`1614`)
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - :py:meth:`Dataset.quantile`, :py:meth:`DataArray.quantile` and ``GroupBy.quantile``
    now work with dask Variables.
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - Added the ``count`` reduction method to both :py:class:`~core.rolling.DatasetCoarsen`
    and :py:class:`~core.rolling.DataArrayCoarsen` objects. (:pull:`3500`)
    By `Deepak Cherian <https://github.com/dcherian>`_
  - Add ``meta`` kwarg to :py:func:`~xarray.apply_ufunc`;
    this is passed on to :py:func:`dask.array.blockwise`. (:pull:`3660`)
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - 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 <https://github.com/juseg>`_.
  - :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 <https://github.com/keewis>`_.
  - 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 <https://github.com/andersy005>`_.
  - Improvements to interpolating along time axes (:issue:`3641`, :pull:`3631`).
    By `David Huard <https://github.com/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 <https://github.com/dcherian>`_.
  - Fix :py:meth:`~xarray.combine_by_coords` to allow for combining incomplete
    hypercubes of Datasets (:issue:`3648`).  By `Ian Bolliger
    <https://github.com/bolliger32>`_.
  - Fix :py:func:`~xarray.combine_by_coords` when combining cftime coordinates
    which span long time intervals (:issue:`3535`).  By `Spencer Clark
    <https://github.com/spencerkclark>`_.
  - Fix plotting with transposed 2D non-dimensional coordinates. (:issue:`3138`, :pull:`3441`)
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - :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 <https://github.com/dcherian>`_.
  - Fix issue with Dask-backed datasets raising a ``KeyError`` on some computations involving :py:func:`map_blocks` (:pull:`3598`).
    By `Tom Augspurger <https://github.com/TomAugspurger>`_.
  - Ensure :py:meth:`Dataset.quantile`, :py:meth:`DataArray.quantile` issue the correct error
    when ``q`` is out of bounds (:issue:`3634`) by `Mathias Hauser <https://github.com/mathause>`_.
  - Fix regression in xarray 0.14.1 that prevented encoding times with certain
    ``dtype``, ``_FillValue``, and ``missing_value`` encodings (:issue:`3624`).
    By `Spencer Clark <https://github.com/spencerkclark>`_
  - 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 <https://github.com/keewis>`_.
  - :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 <https://github.com/TomNicholas>`_.
  - Fix a regression in :py:meth:`Dataset.drop`: allow passing any
    iterable when dropping variables (:issue:`3552`, :pull:`3693`)
    By `Justus Magin <https://github.com/keewis>`_.
  - Fixed errors emitted by ``mypy --strict`` in modules that import xarray.
    (:issue:`3695`) by `Guido Imperiale <https://github.com/crusaderky>`_.
  - 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 <https://github.com/juseg>`_.
 - Documentation:
  - Switch doc examples to use `nbsphinx <https://nbsphinx.readthedocs.io>`_ and replace
    ``sphinx_gallery`` scripts with Jupyter notebooks. (:pull:`3105`, :pull:`3106`, :pull:`3121`)
    By `Ryan Abernathey <https://github.com/rabernat>`_.
  - Added :doc:`example notebook <examples/ROMS_ocean_model>` demonstrating use of xarray with
    Regional Ocean Modeling System (ROMS) ocean hydrodynamic model output. (:pull:`3116`)
    By `Robert Hetland <https://github.com/hetland>`_.
  - Added :doc:`example notebook <examples/ERA5-GRIB-example>` demonstrating the visualization of
    ERA5 GRIB data. (:pull:`3199`)
    By `Zach Bruick <https://github.com/zbruick>`_ and
    `Stephan Siemen <https://github.com/StephanSiemen>`_.
  - Added examples for :py:meth:`DataArray.quantile`, :py:meth:`Dataset.quantile` and
    ``GroupBy.quantile``. (:pull:`3576`)
    By `Justus Magin <https://github.com/keewis>`_.
  - Add new :doc:`example notebook <examples/apply_ufunc_vectorize_1d>` example notebook demonstrating
    vectorization of a 1D function using :py:func:`apply_ufunc` , dask and numba.
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - Added example for :py:func:`~xarray.map_blocks`. (:pull:`3667`)
    By `Riley X. Brady <https://github.com/bradyrx>`_.
 - 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 <https://github.com/dcherian>`_.
  - 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 <https://github.com/crusaderky>`_.
  - Removed internal method ``Dataset._from_vars_and_coord_names``,
    which was dominated by ``Dataset._construct_direct``. (:pull:`3565`)
    By `Maximilian Roos <https://github.com/max-sixty>`_.
  - 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 <https://github.com/crusaderky>`_.
  - Use of isort is now enforced by CI.
    (:pull:`3721`) by `Guido Imperiale <https://github.com/crusaderky>`_

OBS-URL: https://build.opensuse.org/request/show/770348
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=18
2020-02-06 12:08:12 +00:00
Sebastian Wagner
4c54ff85ae - update to version 0.15.0:
- This release brings many improvements to xarray's documentation: our examples are now binderized notebooks (`click here <https://mybinder.org/v2/gh/pydata/xarray/master?urlpath=lab/tree/doc/examples/weather-data.ipynb>`_):
 - 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 <https://github.com/max-sixty>`_.
  - :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 <https://github.com/mathause>`_.
 - New Features:
  - :py:meth:`DataArray.sel` and :py:meth:`Dataset.sel` now support :py:class:`pandas.CategoricalIndex`. (:issue:`3669`)
    By `Keisuke Fujii <https://github.com/fujiisoup>`_.
  - 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 <https://github.com/kmuehlbauer>`_.
  - Implement ``median`` and ``nanmedian`` for dask arrays. This works by rechunking

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=31
2020-02-01 15:13:57 +00:00
Dominique Leuenberger
c7b34bb21b Accepting request 750235 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/750235
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=17
2019-11-28 09:13:15 +00:00
Tomáš Chvátal
e27cfe86b1 Accepting request 750215 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/750215
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=29
2019-11-22 08:29:20 +00:00
Dominique Leuenberger
583e4711f4 Accepting request 742735 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/742735
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=16
2019-10-24 21:11:38 +00:00
Sebastian Wagner
6d9a3949fe Accepting request 742733 from home:TheBlackCat:branches:devel:languages:python:numeric
update to version 0.14.0

OBS-URL: https://build.opensuse.org/request/show/742733
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=27
2019-10-24 20:10:08 +00:00
Dominique Leuenberger
fb305b9f38 Accepting request 733869 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/733869
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=15
2019-09-30 13:59:42 +00:00
Sebastian Wagner
4df9058ab5 Accepting request 732407 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/732407
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=25
2019-09-21 20:14:20 +00:00
Dominique Leuenberger
be3fa82569 Accepting request 721128 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/721128
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=14
2019-08-06 13:12:02 +00:00
Sebastian Wagner
8db6ad13e9 Accepting request 719727 from home:TheBlackCat:branches:devel:languages:python:numeric
Disable non-functional dask tests

OBS-URL: https://build.opensuse.org/request/show/719727
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=23
2019-07-30 04:49:59 +00:00
Dominique Leuenberger
ae27de3c07 Accepting request 716615 from devel:languages:python:numeric
- update to version 0.12.3:
 - New functions/methods:
  - New methods :py:meth:`Dataset.to_stacked_array` and
    :py:meth:`DataArray.to_unstacked_dataset` for reshaping Datasets of variables
    with different dimensions
    (:issue:`1317`).
    This is useful for feeding data from xarray into machine learning models,
    as described in :ref:`reshape.stacking_different`.
 - Enhancements:
  - Support for renaming ``Dataset`` variables and dimensions independently
    with :py:meth:`~Dataset.rename_vars` and :py:meth:`~Dataset.rename_dims`
    (:issue:`3026`).
  - Add ``scales``, ``offsets``, ``units`` and ``descriptions``
    attributes to :py:class:`~xarray.DataArray` returned by
    :py:func:`~xarray.open_rasterio`. (:issue:`3013`)
 - Bug fixes:
  - Resolved deprecation warnings from newer versions of matplotlib and dask.
  - Compatibility fixes for the upcoming pandas 0.25 and NumPy 1.17 releases.
  - Fix summaries for multiindex coordinates (:issue:`3079`).
  - Fix HDF5 error that could arise when reading multiple groups from a file at
    once (:issue:`2954`).

OBS-URL: https://build.opensuse.org/request/show/716615
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=13
2019-07-21 09:33:46 +00:00
Sebastian Wagner
af8f8637aa - update to version 0.12.3:
- New functions/methods:
  - New methods :py:meth:`Dataset.to_stacked_array` and
    :py:meth:`DataArray.to_unstacked_dataset` for reshaping Datasets of variables
    with different dimensions
    (:issue:`1317`).
    This is useful for feeding data from xarray into machine learning models,
    as described in :ref:`reshape.stacking_different`.
 - Enhancements:
  - Support for renaming ``Dataset`` variables and dimensions independently
    with :py:meth:`~Dataset.rename_vars` and :py:meth:`~Dataset.rename_dims`
    (:issue:`3026`).
  - Add ``scales``, ``offsets``, ``units`` and ``descriptions``
    attributes to :py:class:`~xarray.DataArray` returned by
    :py:func:`~xarray.open_rasterio`. (:issue:`3013`)
 - Bug fixes:
  - Resolved deprecation warnings from newer versions of matplotlib and dask.
  - Compatibility fixes for the upcoming pandas 0.25 and NumPy 1.17 releases.
  - Fix summaries for multiindex coordinates (:issue:`3079`).
  - Fix HDF5 error that could arise when reading multiple groups from a file at
    once (:issue:`2954`).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=21
2019-07-15 19:35:40 +00:00
Dominique Leuenberger
8212c6f26b Accepting request 713835 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/713835
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=12
2019-07-08 13:11:35 +00:00
Sebastian Wagner
376f03501a skip one online test
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=19
2019-06-30 10:20:43 +00:00
Sebastian Wagner
05745a2f96 - update to version 0.12.2:
- New functions/methods:
  - Two new functions, :py:func:`~xarray.combine_nested` and
    :py:func:`~xarray.combine_by_coords`, allow for combining datasets along any
    number of dimensions, instead of the one-dimensional list of datasets
    supported by :py:func:`~xarray.concat`.
    The new ``combine_nested`` will accept the datasets as a nested
    list-of-lists, and combine by applying a series of concat and merge
    operations. The new ``combine_by_coords`` instead uses the dimension
    coordinates of datasets to order them.
    :py:func:`~xarray.open_mfdataset` can use either ``combine_nested`` or
    ``combine_by_coords`` to combine datasets along multiple dimensions, by
    specifying the argument ``combine='nested'`` or ``combine='by_coords'``.
    The older function :py:func:`~xarray.auto_combine` has been deprecated,
    because its functionality has been subsumed by the new functions.
    To avoid FutureWarnings switch to using ``combine_nested`` or
    ``combine_by_coords``, (or set the ``combine`` argument in
    ``open_mfdataset``). (:issue:`2159`)
    By `Tom Nicholas <http://github.com/TomNicholas>`_.
  - :py:meth:`~xarray.DataArray.rolling_exp` and
    :py:meth:`~xarray.Dataset.rolling_exp` added, similar to pandas'
    ``pd.DataFrame.ewm`` method. Calling ``.mean`` on the resulting object
    will return an exponentially weighted moving average.
    By `Maximilian Roos <https://github.com/max-sixty>`_.
  - New :py:func:`DataArray.str <core.accessor_str.StringAccessor>` for string
    related manipulations, based on ``pandas.Series.str``.
    By `0x0L <https://github.com/0x0L>`_.
  - Added ``strftime`` method to ``.dt`` accessor, making it simpler to hand a
    datetime ``DataArray`` to other code expecting formatted dates and times.
    (:issue:`2090`). :py:meth:`~xarray.CFTimeIndex.strftime` is also now

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=18
2019-06-30 09:30:45 +00:00
Dominique Leuenberger
40419f41b6 Accepting request 705797 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/705797
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=11
2019-06-01 07:46:37 +00:00
Tomáš Chvátal
6f6f59d916 Accepting request 705725 from home:TheBlackCat:branches:devel:languages:python:numeric
fix building on ARM

OBS-URL: https://build.opensuse.org/request/show/705725
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=16
2019-05-28 07:15:41 +00:00
Dominique Leuenberger
f12553edb0 Accepting request 697053 from devel:languages:python:numeric
- Just use %pytest macro

- Update to version 0.12.1:
 - Enhancements
  - Allow ``expand_dims`` method to support inserting/broadcasting dimensions
    with size > 1. (:issue:`2710`)
 - Bug fixes
  - Dataset.copy(deep=True) now creates a deep copy of the attrs (:issue:`2835`).
  - Fix incorrect ``indexes`` resulting from various ``Dataset`` operations
    (e.g., ``swap_dims``, ``isel``, ``reindex``, ``[]``) (:issue:`2842`,
    :issue:`2856`).

OBS-URL: https://build.opensuse.org/request/show/697053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=10
2019-05-13 12:48:38 +00:00
Tomáš Chvátal
e4c40cde16 - Just use %pytest macro
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=14
2019-04-23 09:44:37 +00:00
Sebastian Wagner
bea2b3c885 - update to version 0.11.3:
- Bug fixes
  - Saving files with times encoded with reference dates with timezones
    (e.g. '2000-01-01T00:00:00-05:00') no longer raises an error
    (:issue:`2649`).
  - Fixed performance regression with ``open_mfdataset`` (:issue:`2662`).
  - Fixed supplying an explicit dimension in the ``concat_dim`` argument to
    to ``open_mfdataset`` (:issue:`2647`).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=13
2019-04-07 11:53:36 +00:00
Dominique Leuenberger
541f7dbdd0 Accepting request 685723 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/685723
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=9
2019-03-18 09:42:48 +00:00
Sebastian Wagner
202a08d66f Accepting request 685681 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/685681
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=11
2019-03-17 07:56:01 +00:00