1
0
forked from pool/python-xarray

Compare commits

..

116 Commits

Author SHA256 Message Date
9faec81861 Accepting request 1228770 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1228770
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=52
2024-12-08 10:37:12 +00:00
792ac07c5a - Skip another type induced test error on 32-bit
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=109
2024-12-06 12:28:41 +00:00
ca76322b87 Accepting request 1226114 from devel:languages:python:numeric
- skip test test_asi8 on 32bit, results in "OverflowError: Python int too large to convert to C long"
- update to version .2024.11.0:
- disable the 'parallel' subpackage because dask is unavailable 3.12, which is because numba is unavailable on 3.13
https://build.opensuse.org/request/show/1225144
https://github.com/numba/numba/issues/9760
- disabled tests requiring dask
- delete obsolete patches xarray-pr9356-dasktests.patch, xarray-pr9321-dasktests.patch and xarray-pr9403-np2.1-scalar.patch

OBS-URL: https://build.opensuse.org/request/show/1226114
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=51
2024-11-25 22:20:34 +00:00
Sebastian Wagner
d6077b1f8a - delete obsolete patches xarray-pr9356-dasktests.patch, xarray-pr9321-dasktests.patch and xarray-pr9403-np2.1-scalar.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=107
2024-11-24 17:07:17 +00:00
Sebastian Wagner
b025ff699d - skip test test_asi8 on 32bit, results in "OverflowError: Python int too large to convert to C long"
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=106
2024-11-24 16:26:44 +00:00
Sebastian Wagner
abf60408f1 - disabled tests requiring dask
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=105
2024-11-24 14:36:27 +00:00
Sebastian Wagner
6297a9ddc6 - update to version .2024.11.0:
- This release brings better support for wrapping JAX arrays and Astropy Quantity objects, :py:meth:`DataTree.persist`, algorithmic improvements:
 - to many methods with dask (:py:meth:`Dataset.polyfit`, :py:meth:`Dataset.ffill`, :py:meth:`Dataset.bfill`, rolling reductions), and bug fixes.:
 - Thanks to the 22 contributors to this release:
 - Benoit Bovy, Deepak Cherian, Dimitri Papadopoulos Orfanos, Holly Mandel, James Bourbeau, Joe Hamman, Justus Magin, Kai Mühlbauer, Lukas Trippe, Mathias Hauser, Maximilian Roos, Michael Niklas, Pascal Bourgault, Patrick Hoefler, Sam Levang, Sarah Charlotte Johnson, Scott Huberty, Stephan Hoyer, Tom Nicholas, Virgile Andreani, joseph nowak and tvo:
 - New Features:
  - Added :py:meth:`DataTree.persist` method (:issue:`9675`, :pull:`9682`).
    By `Sam Levang <https://github.com/slevang>`_.
  - Added ``write_inherited_coords`` option to :py:meth:`DataTree.to_netcdf`
    and :py:meth:`DataTree.to_zarr` (:pull:`9677`).
    By `Stephan Hoyer <https://github.com/shoyer>`_.
  - Support lazy grouping by dask arrays, and allow specifying ordered groups with ``UniqueGrouper(labels=["a", "b", "c"])``
    (:issue:`2852`, :issue:`757`).
    By `Deepak Cherian <https://github.com/dcherian>`_.
  - Add new ``automatic_rechunk`` kwarg to :py:meth:`DataArrayRolling.construct` and
    :py:meth:`DatasetRolling.construct`. This is only useful on ``dask>=2024.11.0``
    (:issue:`9550`). By `Deepak Cherian <https://github.com/dcherian>`_.
  - Optimize ffill, bfill with dask when limit is specified
    (:pull:`9771`).
    By `Joseph Nowak <https://github.com/josephnowak>`_, and
    `Patrick Hoefler <https://github.com/phofl>`_.
  - Allow wrapping ``np.ndarray`` subclasses, e.g. ``astropy.units.Quantity`` (:issue:`9704`, :pull:`9760`).
    By `Sam Levang <https://github.com/slevang>`_ and `Tien Vo <https://github.com/tien-vo>`_.
  - Optimize :py:meth:`DataArray.polyfit` and :py:meth:`Dataset.polyfit` with dask, when used with
    arrays with more than two dimensions.
    (:issue:`5629`). By `Deepak Cherian <https://github.com/dcherian>`_.
  - Support for directly opening remote files as string paths (for example, ``s3://bucket/data.nc``)
    with ``fsspec`` when using the ``h5netcdf`` engine (:issue:`9723`, :pull:`9797`).
    By `James Bourbeau <https://github.com/jrbourbeau>`_.
  - Re-implement the :py:mod:`ufuncs` module, which now dynamically dispatches to the

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=104
2024-11-24 13:24:06 +00:00
Sebastian Wagner
b40279f857 - disable the 'parallel' subpackage because dask is unavailable 3.12, which is because numba is unavailable on 3.13
https://build.opensuse.org/request/show/1225144
  https://github.com/numba/numba/issues/9760

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=103
2024-11-24 13:10:54 +00:00
852099ad70 Accepting request 1199626 from devel:languages:python:numeric
- Update to 2024.7.0
  * Add test for rechunking to a size string by @dcherian in #9117
  * Update docstring in api.py for open_mfdataset(), clarifying
    "chunks" argument by @arthur-e in #9121
  * Grouper refactor by @dcherian in #9122
  * adjust repr tests to account for different platforms (#9127) by
    @mgorny in #9128
  * Support duplicate dimensions in .chunk by @mraspaud in #9099
  * Update zendoo badge link by @max-sixty in #9133
  * Split out distributed writes in zarr docs by @max-sixty in
    #9132
  * Improve to_zarr docs by @max-sixty in #9139
  * groupby: remove some internal use of IndexVariable by @dcherian
    in #9123
  * Improve zarr chunks docs by @max-sixty in #9140
  * Include numbagg in type checks by @max-sixty in #9159
  * Remove mypy exclusions for a couple more libraries by
    @max-sixty in #9160
  * Add test for #9155 by @max-sixty in #9161
  * switch to datetime unit "D" by @keewis in #9170
  * Slightly improve DataTree repr by @shoyer in #9064
  * Fix example code formatting for CachingFileManager by @djhoese
    in #9178
  * Change np.core.defchararray to np.char (#9165) by @pont-us in
    #9166
  * temporarily remove pydap from CI by @keewis in #9183
  * also pin numpy in the all-but-dask CI by @keewis in #9184
  * promote floating-point numeric datetimes to 64-bit before
    decoding by @keewis in #9182
  * "source" encoding for datasets opened from fsspec objects by

OBS-URL: https://build.opensuse.org/request/show/1199626
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=50
2024-09-09 12:45:45 +00:00
02ceca8775 Accepting request 1179055 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1179055
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=49
2024-06-07 13:03:57 +00:00
Sebastian Wagner
4042c8f6d5 Accepting request 1179054 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 2024.5.0
  * Update reference to 'Weighted quantile estimators' by
    @AndreyAkinshin in #8898
  * Update docstring for compute and persist by @saschahofmann in
    #8903
  * Stateful tests with Dataset by @dcherian in #8658
  * Trigger hypothesis stateful tests nightly by @dcherian in #8907
  * Don't access data when creating DataArray from Variable. by
    @dcherian in #8754
  * Add typing to test_plot.py by @Illviljan in #8889
  * Update hypothesis action to always save the cache by @dcherian
    in #8913
  * Add typing to some functions in indexing.py by @Illviljan in
    #8922
  * Enhance the ugly error in constructor when no data passed by
    @aimtsou in #8920
  * Migrate iterators.py for datatree. by @owenlittlejohns in #8879
  * use pd.to_timedelta instead of TimedeltaIndex by @keewis in
    #8938
  * adapt more tests to the copy-on-write behavior of pandas by
    @keewis in #8940
  * Correct save_mfdataset docstring by @TomNicholas in #8934
  * Convert 360_day calendars by choosing random dates to drop or
    add by @aulemahal in #8603
  * Migrate datatree mapping.py by @owenlittlejohns in #8948
  * (feat): Support for pandas ExtensionArray by @ilan-gold in
    #8723
  * Migrate formatting_html.py into xarray core by @eni-awowale in
    #8930
  * use nan instead of NaN by @keewis in #8961
  * stop pruning datatree_ directory from distribution by
    @flamingbear in #8953
  * Delete pynio backend. by @dcherian in #8971
  * Migrate datatreee assertions/extensions/formatting by
    @owenlittlejohns in #8967
  * Bump dependencies incl pandas>=2 by @dcherian in #8968
  * Option to not auto-create index during expand_dims by
    @TomNicholas in #8960
  * Raise errors on new warnings from within xarray by @max-sixty
    in #8974
  * more engine environment tricks in preparation for numpy>=2 by
    @keewis in #8978
  * Switch all methods to dim by @max-sixty in #8982
  * Docstring and documentation improvement for the Dataset class
    by @noahbenson in #8973
  * Add notes on when to add ignores to warnings by @max-sixty in
    #8987
  * Remove .drop warning allow by @max-sixty in #8988
  * Skip flaky test_open_mfdataset_manyfiles test by @max-sixty in
    #8989
  * avoid a couple of warnings in polyfit by @keewis in #8939
  * Migration of datatree/ops.py -> datatree_ops.py by @flamingbear
    in #8976
  * Mark test_use_cftime_false_standard_calendar_in_range as an
    expected failure by @spencerkclark in #8996
  * call np.cross with 3D vectors only by @keewis in #8993
  * Fix syntax error in test related to cupy by @hmaarrfk in #9000
  * Add argument check_dims to assert_allclose to allow transposed
    inputs (#5733) by @ignamv in #8991
  * Faster fastpath by @hmaarrfk in #9001
  * Speed up localize by @Illviljan in #8536
  * Port negative frequency fix for pandas.date_range to
    cftime_range by @spencerkclark in #8999
  * Zarr: Optimize region="auto" detection by @dcherian in #8997
  * Add a benchmark to monitor performance for large dataset
    indexing by @hmaarrfk in #9012
  * Avoid extra read from disk when creating Pandas Index. by
    @dcherian in #8893
  * Avoid auto creation of indexes in concat by @TomNicholas in
    #8872
  * Zarr: Optimize appending by @dcherian in #8998
- Drop xarray-pr8953-nodatatreeprune.patch
- Add xarray-pr8854-np2.patch gh#pydata/xarray#8854
- Add xarray-pr9305-cftime.patch gh#pydata/xarray#9305

OBS-URL: https://build.opensuse.org/request/show/1179054
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=97
2024-06-06 17:16:35 +00:00
ae5c6a4f3a Accepting request 1171905 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1171905
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=48
2024-05-05 10:11:00 +00:00
Sebastian Wagner
69cc45c6ae Accepting request 1171757 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 2024.3.0
  ## New Features
  * Partial writes to existing chunks with region or append_dim
    will now raise an error (unless safe_chunks=False); previously
    an error would only be raised on new variables. (PR8459,
    GH8371, GH8882) By Maximilian Roos.
  * Grouped and resampling quantile calculations now use the
    vectorized algorithm in flox>=0.9.4 if present. By Deepak
    Cherian.
  * Do not broadcast in arithmetic operations when global option
    arithmetic_broadcast=False (GH6806, PR8784). By Etienne Schalk
    and Deepak Cherian.
  * Add the .oindex property to Explicitly Indexed Arrays for
    orthogonal indexing functionality. (GH8238, PR8750) By Anderson
    Banihirwe.
  * Add the .vindex property to Explicitly Indexed Arrays for
    vectorized indexing functionality. (GH8238, PR8780) By Anderson
    Banihirwe.
  * Expand use of .oindex and .vindex properties. (:pull: 8790) By
    Anderson Banihirwe and Deepak Cherian.
  * Allow creating xr.Coordinates objects with no indexes (PR8711)
    By Benoit Bovy and Tom Nicholas.
  * Enable plotting of datetime.dates. (GH8866, PR8873) By Sascha
    Hofmann.
  ## Breaking changes
  * Don’t allow overwriting index variables with to_zarr region
    writes. (GH8589, PR8876). By Deepak Cherian.
  ## Bug fixes
  * The default freq parameter in xr.date_range() and
    xr.cftime_range() is set to 'D' only if periods, start, or end

OBS-URL: https://build.opensuse.org/request/show/1171757
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=95
2024-05-04 11:49:52 +00:00
47d22cc664 Accepting request 1159356 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1159356
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=47
2024-03-19 16:32:42 +00:00
2906ec4e42 Accepting request 1159122 from home:bnavigator:branches:devel:languages:python:numeric
- Add xarray-pr8797-tokenize.patch
  * gh#pydata/xarray#8797 fixes gh#pydata/xarray#8788

OBS-URL: https://build.opensuse.org/request/show/1159122
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=93
2024-03-19 11:26:48 +00:00
201d95acff Accepting request 1154193 from devel:languages:python:numeric
- Skip Python 3.9. It requires pydap, which is not available any
  more.
- Update to 2024.2.0
  * This release brings size information to the text repr, changes
    to the accepted frequency strings, and various bug fixes.
  ## New Features
  * Added a simple nbytes representation in DataArrays and Dataset
    repr. (GH8690, PR8702). By Etienne Schalk.
  * Allow negative frequency strings (e.g. "-1YE"). These strings
    are for example used in date_range(), and cftime_range()
    (PR8651). By Mathias Hauser.
  * Add NamedArray.expand_dims(), NamedArray.permute_dims() and
    NamedArray.broadcast_to() (PR8380) By Anderson Banihirwe.
  * Xarray now defers to flox’s heuristics to set the default
    method for groupby problems. This only applies to flox>=0.9. By
    Deepak Cherian.
  * All quantile methods (e.g. 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’). (GH7377, PR8684) By
    Marco Wolsza.
  ## Breaking changes
  * infer_freq() always returns the frequency strings as defined in
    pandas 2.2 (GH8612, PR8627). By Mathias Hauser.
  * Deprecations
  * The dt.weekday_name parameter wasn’t functional on modern
    pandas versions and has been removed. (GH8610, PR8664) By Sam
    Coleman.
  ## Bug fixes
  * Fixed a regression that prevented multi-index level coordinates
    being serialized after resetting or dropping the multi-index
    (GH8628, PR8672). By Benoit Bovy.
  * Fix bug with broadcasting when wrapping array API-compliant
    classes. (GH8665, PR8669) By Tom Nicholas.
  * Ensure DataArray.unstack() works when wrapping array
    API-compliant classes. (GH8666, PR8668) By Tom Nicholas.
  * Fix negative slicing of Zarr arrays without dask installed.
    (GH8252) By Deepak Cherian.
  * Preserve chunks when writing time-like variables to zarr by
    enabling lazy CF encoding of time-like variables (GH7132,
    GH8230, GH8432, PR8575). By Spencer Clark and Mattia Almansi.
  * Preserve chunks when writing time-like variables to zarr by
    enabling their lazy encoding (GH7132, GH8230, GH8432, PR8253,
    PR8575; see also discussion in PR8253). By Spencer Clark and
    Mattia Almansi.
  * 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 (GH8542, PR8575). By
    Spencer Clark.
  * Raise an error when unstacking a MultiIndex that has duplicates
    as this would lead to silent data loss (GH7104, PR8737). By
    Mathias Hauser.
- Release 2024.1.1
  ## Breaking changes
  * Following pandas, 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. This is a follow
    up to PR8415 (GH8612, PR8642). By Mathias Hauser.
  ## Deprecations
  * Following pandas, the frequency string "Y" (formerly "A") is
    deprecated in favor of "YE". These strings are used, for
    example, in date_range(), cftime_range(), DataArray.resample(),
    and Dataset.resample() among others (GH8612, PR8629). By
    Mathias Hauser.
- Release 2024.1.0
  * 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.
  ## New Features
  * xr.cov() and xr.corr() now support using weights (GH8527,
    PR7392). By Llorenç Lledó.
  * Accept the compression arguments new in netCDF 1.6.0 in the
    netCDF4 backend. See netCDF4 documentation 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. (GH6929, PR7551)
  * Add DataArray.cumulative() & 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
    DataArray.rolling() with a window length equal to the dimension
    size. By Maximilian Roos. (PR8512)
  * 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.
    (GH8144, PR8147)
  ## Deprecations
  * The squeeze kwarg to GroupBy is now deprecated. (GH2157,
    PR8507) By Deepak Cherian.
  ## Bug fixes
  * Support non-string hashable dimensions in xarray.DataArray
    (GH8546, PR8559). By Michael Niklas.
  * Reverse index output of bottleneck’s rolling
    move_argmax/move_argmin functions (GH8541, PR8552). By Kai
    Mühlbauer.
  * Vendor SerializableLock from dask and use as default lock for
    netcdf4 backends (GH8442, PR8571). By Kai Mühlbauer.
  * Add tests and fixes for empty CFTimeIndex, including broken
    html repr (GH7298, PR8600). By Mathias Hauser.
- Create subpackages for the python [extras], test dependencies
  with _multibuild

OBS-URL: https://build.opensuse.org/request/show/1154193
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=46
2024-03-01 22:40:11 +00:00
3c048e7295 - Skip Python 3.9. It requires pydap, which is not available any
more.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=91
2024-03-01 21:04:42 +00:00
7b4792ad94 Accepting request 1152304 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 2024.2.0
  * This release brings size information to the text repr, changes
    to the accepted frequency strings, and various bug fixes.
  ## New Features
  * Added a simple nbytes representation in DataArrays and Dataset
    repr. (GH8690, PR8702). By Etienne Schalk.
  * Allow negative frequency strings (e.g. "-1YE"). These strings
    are for example used in date_range(), and cftime_range()
    (PR8651). By Mathias Hauser.
  * Add NamedArray.expand_dims(), NamedArray.permute_dims() and
    NamedArray.broadcast_to() (PR8380) By Anderson Banihirwe.
  * Xarray now defers to flox’s heuristics to set the default
    method for groupby problems. This only applies to flox>=0.9. By
    Deepak Cherian.
  * All quantile methods (e.g. 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’). (GH7377, PR8684) By
    Marco Wolsza.
  ## Breaking changes
  * infer_freq() always returns the frequency strings as defined in
    pandas 2.2 (GH8612, PR8627). By Mathias Hauser.
  * Deprecations
  * The dt.weekday_name parameter wasn’t functional on modern
    pandas versions and has been removed. (GH8610, PR8664) By Sam
    Coleman.
  ## Bug fixes
  * Fixed a regression that prevented multi-index level coordinates
    being serialized after resetting or dropping the multi-index
    (GH8628, PR8672). By Benoit Bovy.

OBS-URL: https://build.opensuse.org/request/show/1152304
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=90
2024-02-29 08:58:33 +00:00
3d2bebcfd0 Accepting request 1136895 from devel:languages:python:numeric
- Disable ROS3 tests, because hdf5 library was built without ROS3 support.

OBS-URL: https://build.opensuse.org/request/show/1136895
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=45
2024-01-04 17:41:18 +00:00
Sebastian Wagner
531768215c - Disable ROS3 tests, because hdf5 library was built without ROS3 support.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=88
2024-01-04 11:17:33 +00:00
21c6595d73 Accepting request 1134379 from devel:languages:python:numeric
- remove obsolete patch file xarray-pr8139-pandas-fill_value.patch
- update to version 2023.12.0:

OBS-URL: https://build.opensuse.org/request/show/1134379
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=44
2023-12-21 22:38:54 +00:00
Sebastian Wagner
cd53fc5976 - remove obsolete patch file xarray-pr8139-pandas-fill_value.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=86
2023-12-20 20:41:07 +00:00
Sebastian Wagner
088b745878 remove patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=85
2023-12-20 20:40:51 +00:00
Sebastian Wagner
548007d024 - update to version 2023.12.0:
- This release brings new `hypothesis <https://hypothesis.works/>`_ strategies for testing, significantly faster rolling aggregations as well as:
``ffill`` and ``bfill`` with ``numbagg``, a new :py:meth:`Dataset.eval` method, and improvements to
 - reading and writing Zarr arrays (including a new ``"a-"`` mode).:
 - Thanks to our 16 contributors:
 - Anderson Banihirwe, Ben Mares, Carl Andersson, Deepak Cherian, Doug Latornell, Gregorio L. Trevisan, Illviljan, Jens Hedegaard Nielsen, Justus Magin, Mathias Hauser, Max Jones, Maximilian Roos, Michael Niklas, Patrick Hoefler, Ryan Abernathey, Tom Nicholas:
 - New Features:
  - Added hypothesis strategies for generating :py:class:`xarray.Variable` objects containing arbitrary data, useful for parametrizing downstream tests.
    Accessible under :py:mod:`testing.strategies`, and documented in a new page on testing in the User Guide.
    (:issue:`6911`, :pull:`8404`)
    By `Tom Nicholas <https://github.com/TomNicholas>`_.
  - :py:meth:`rolling` uses `numbagg <https://github.com/numbagg/numbagg>`_ for
    most of its computations by default. Numbagg is up to 5x faster than bottleneck
    where parallelization is possible. Where parallelization isn't possible — for
    example a 1D array — it's about the same speed as bottleneck, and 2-5x faster
    than pandas' default functions. (:pull:`8493`). numbagg is an optional
    dependency, so requires installing separately.
    By `Maximilian Roos <https://github.com/max-sixty>`_.
  - Use a concise format when plotting datetime arrays. (:pull:`8449`).
    By `Jimmy Westling <https://github.com/illviljan>`_.
  - Avoid overwriting unchanged existing coordinate variables when appending with :py:meth:`Dataset.to_zarr` by setting ``mode='a-'``.
    By `Ryan Abernathey <https://github.com/rabernat>`_ and `Deepak Cherian <https://github.com/dcherian>`_.
  - :py:meth:`~xarray.DataArray.rank` now operates on dask-backed arrays, assuming
    the core dim has exactly one chunk. (:pull:`8475`).
    By `Maximilian Roos <https://github.com/max-sixty>`_.
  - Add a :py:meth:`Dataset.eval` method, similar to the pandas' method of the
    same name. (:pull:`7163`). This is currently marked as experimental and
    doesn't yet support the ``numexpr`` engine.
  - :py:meth:`Dataset.drop_vars` & :py:meth:`DataArray.drop_vars` allow passing a
    callable, similar to :py:meth:`Dataset.where` & :py:meth:`Dataset.sortby` & others.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=84
2023-12-13 18:22:40 +00:00
c1c68c6223 Accepting request 1110839 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1110839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=43
2023-09-13 18:45:44 +00:00
dff17e69ab Accepting request 1110376 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 2023.8.0
  * This release brings changes to minimum dependencies, allows
    reading of datasets where a dimension name is associated with a
    multidimensional variable (e.g. finite volume ocean model
    output), and introduces a new xarray.Coordinates object.
  ## Announcements
  * The xarray.Variable class is being refactored out to a new
    project title 'namedarray'. See the design doc for more
    details. Reach out to us on this discussion topic if you have
    any thoughts.
  ## What's Changed
  * Use variable name in all exceptions raised in as_variable by
    @ZedThree in #7995
  * Allow opening datasets with nD dimenson coordinate variables.
    by @dcherian in #7989
  * join together duplicate entries in the text repr by @keewis in
    #7225
  * Expose "Coordinates" as part of Xarray's public API by @benbovy
    in #7368
  * Update interpolate_na in dataset.py by @ilgast in #7974
  * Add HDF5 Section to read/write docs page by @rwegener2 in #8012
  * Add examples to docstrings by @harshitha1201 in #7937
  * (chore) min versions bump by @jhamman in #8022
  * Automatically chunk other in GroupBy binary ops. by @dcherian
    in #7684
  * change cumproduct to cumprod by @quantsnus in #8031
  * Reduce pre-commit update frequency to monthly from weekly. by
    @dcherian in #8033
  * sort when encoding coordinates for deterministic outputs by
    @itcarroll in #8034
  * Zarr : Allow setting write_empty_chunks by @RKuttruff in #8016
  * Count documentation by @Articoking in #8057
  * unpin numpy by @keewis in #8061
- Release 2023.7.0
  * This release brings improvements to the documentation on
    wrapping numpy-like arrays, improved docstrings, and bug fixes.
  ## What's Changed
  * Allow cubed arrays to be passed to flox groupby by @TomNicholas
    in #7941
  * Duck array documentation improvements by @TomNicholas in #7911
  * Docstring examples by @harshitha1201 in #7881
  * Chunked array docs by @TomNicholas in #7951
  * ensure no forward slashes in names for HDF5-based backends by
    @kmuehlbauer in #7953
  * Move absolute path finder from open_mfdataset to own function
    by @Illviljan in #7968
  * Skip broken tests on Python 3.11 and Windows by @Illviljan in
    #7972
  * Examples added to docstrings by @harshitha1201 in #7936
  * Fix typo in zarr.py by @johmathe in #7983
  * Improve explanation in example "Working with Multidimensional
    Coordinates" by @yvonnefroehlich in #7984
  * Remove hue_style from plot1d docstring by @Illviljan in #7925
- Release 2023.06.0
  * This release adds features to curvefit, improves the
    performance of concatenation, and fixes various bugs.
  ## What's Changed
  * Array API fixes for astype by @TomNicholas in #7847
  * Add type hints to test_dtypes by @Illviljan in #7858
  * adapt the pint + dask test to the newest version of pint by
    @keewis in #7855
  * Avoid explicit loop when updating OrderedSet by @Illviljan in
    #7857
  * Improve to_dask_dataframe performance by @Illviljan in #7844
  * Changed duck typing exception to: (ImportError, AttributeError)
    by @vhaasteren in #7874
  * defer to numpy for the expected result by @keewis in #7875
  * deprecate the cdms2 conversion methods by @keewis in #7876
  * Implement multidimensional initial guess and bounds for
    curvefit by @mgunyho in #7821
  * Improve concat performance by @Illviljan in #7824
  * Fix .groupby(multi index level) by @dcherian in #7830
  * don't use CacheFileManager.__del__ on interpreter shutdown by
    @keewis in #7880
  * fix polyfit changing the original object by @malmans2 in #7900
  * Fix flaky doctest for curvefit by @mgunyho in #7893
  * Ensure dtype of reindex result matches dtype of the original
    DataArray by @andersy005 in #7917
  * Add errors option to curvefit by @mgunyho in #7891
  * CF encoding should preserve vlen dtype for empty arrays by
    @tomwhite in #7862
  * use trusted publishers instead of a API token by @keewis in
    #7899
  * Add cfgrib,ipywidgets to doc env by @dcherian in #7888
  * Fix regression with grouper object on an IndexVariable by
    @mwtoews in #7920
  * Fix check for chunk_store in zarr backend by @juntyr in #7923
  * fixing rolling_window issue with cupy by @negin513 in #7938
- Add xarray-pr8139-pandas-fill_value.patch gh#pydata/xarray#8125,
  gh#pydata/xarray#8139

OBS-URL: https://build.opensuse.org/request/show/1110376
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=82
2023-09-13 07:39:53 +00:00
9b2447cf10 Accepting request 1089954 from devel:languages:python:numeric
- update to 2023.05.0:
  * This release adds some new methods and operators, updates our
    deprecation policy for python versions, fixes some bugs with
    groupby, and introduces experimental support for alternative
    chunked parallel array computation backends via a new plugin
    system!
  * Docstrings examples for string methods
  * Fix groupby_bins when labels are specified
  * Fix binning by unsorted array
  * This release includes support for pandas v2, allows
    refreshing of backend engines in a session, and removes
    deprecated backends for ``rasterio`` and ``cfgrib``.

OBS-URL: https://build.opensuse.org/request/show/1089954
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=42
2023-05-31 19:54:47 +00:00
63abaa0ce5 - update to 2023.05.0:
* This release adds some new methods and operators, updates our
    deprecation policy for python versions, fixes some bugs with
    groupby, and introduces experimental support for alternative
    chunked parallel array computation backends via a new plugin
    system!
  * Docstrings examples for string methods
  * Fix groupby_bins when labels are specified
  * Fix binning by unsorted array
  * This release includes support for pandas v2, allows
    refreshing of backend engines in a session, and removes
    deprecated backends for ``rasterio`` and ``cfgrib``.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=80
2023-05-31 08:28:20 +00:00
d0a877e540 Accepting request 1070561 from devel:languages:python:numeric
- update to version 2023.02.0:
 - This release brings a major upgrade to :py:func:`xarray.concat`, many bug fixes,:
 - and a bump in supported dependency versions. Thanks to our 11 contributors:
 - Aron Gergely, Deepak Cherian, Illviljan, James Bourbeau, Joe Hamman,:
 - Justus Magin, Hauke Schulz, Kai Mühlbauer, Ken Mankoff, Spencer Clark, Tom Nicholas.:
 - Breaking changes:
  - Support for ``python 3.8`` has been dropped and the minimum versions of some
    dependencies were changed (:pull:`7461`):
    ===================== =========  ========
     Package                    Old      New
    ===================== =========  ========
     python                     3.8      3.9
     numpy                     1.20     1.21
     pandas                     1.3      1.4
     dask                   2021.11   2022.1
     distributed            2021.11   2022.1
     h5netcdf                  0.11     0.13
     lxml                       4.6      4.7
     numba                      5.4      5.5
    ===================== =========  ========
 - Deprecations:
  - Following pandas, the `closed` parameters of :py:func:`cftime_range` and
    :py:func:`date_range` are deprecated in favor of the `inclusive` parameters,
    and will be removed in a future version of xarray (:issue:`6985`:,
    :pull:`7373`).
 - Bug fixes:
  - :py:func:`xarray.concat` can now concatenate variables present in some datasets but
    not others (:issue:`508`, :pull:`7400`).
  - Handle ``keep_attrs`` option in binary operators of :py:meth:`Dataset` (:issue:`7390`, :pull:`7391`).
  - Improve error message when using dask in :py:func:`apply_ufunc` with ``output_sizes`` not supplied. (:pull:`7509`)
  - :py:func:`xarray.Dataset.to_zarr` now drops variable encodings that have been added by xarray during reading
    a dataset. (:issue:`7129`, :pull:`7500`).
 - Documentation:
  - Mention the `flox package <https://flox.readthedocs.io>`_ in GroupBy documentation and docstrings.
- update to version 2023.01.0:
 - This release includes a number of bug fixes. Thanks to the 14 contributors to this release:
 - Aron Gergely, Benoit Bovy, Deepak Cherian, Ian Carroll, Illviljan, Joe Hamman, Justus Magin, Mark Harfouche,:
 - Matthew Roeschke, Paige Martin, Pierre, Sam Levang, Tom White,  stefank0.:
 - Breaking changes:
  - :py:meth:`CFTimeIndex.get_loc` has removed the ``method`` and ``tolerance`` keyword arguments.
    Use ``.get_indexer([key], method=..., tolerance=...)`` instead (:pull:`7361`).
 - Bug fixes:
  - Avoid in-memory broadcasting when converting to a dask dataframe
    using ``.to_dask_dataframe.`` (:issue:`6811`, :pull:`7472`).
  - Accessing the property ``.nbytes`` of a DataArray, or Variable no longer
    accidentally triggers loading the variable into memory.
  - Allow numpy-only objects in :py:func:`where` when ``keep_attrs=True`` (:issue:`7362`, :pull:`7364`).
  - add a ``keep_attrs`` parameter to :py:meth:`Dataset.pad`, :py:meth:`DataArray.pad`,
    and :py:meth:`Variable.pad` (:pull:`7267`).
  - Fixed performance regression in alignment between indexed and non-indexed objects
    of the same shape (:pull:`7382`).
  - Preserve original dtype on accessing MultiIndex levels (:issue:`7250`,
    :pull:`7393`).
 - Internal Changes:
  - Add the pre-commit hook `absolufy-imports` to convert relative xarray imports to
    absolute imports (:pull:`7204`, :pull:`7370`).

OBS-URL: https://build.opensuse.org/request/show/1070561
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=41
2023-03-10 21:07:29 +00:00
Sebastian Wagner
6654bf4c0c - update to version 2023.02.0:
- This release brings a major upgrade to :py:func:`xarray.concat`, many bug fixes,:
 - and a bump in supported dependency versions. Thanks to our 11 contributors:
 - Aron Gergely, Deepak Cherian, Illviljan, James Bourbeau, Joe Hamman,:
 - Justus Magin, Hauke Schulz, Kai Mühlbauer, Ken Mankoff, Spencer Clark, Tom Nicholas.:
 - Breaking changes:
  - Support for ``python 3.8`` has been dropped and the minimum versions of some
    dependencies were changed (:pull:`7461`):
    ===================== =========  ========
     Package                    Old      New
    ===================== =========  ========
     python                     3.8      3.9
     numpy                     1.20     1.21
     pandas                     1.3      1.4
     dask                   2021.11   2022.1
     distributed            2021.11   2022.1
     h5netcdf                  0.11     0.13
     lxml                       4.6      4.7
     numba                      5.4      5.5
    ===================== =========  ========
 - Deprecations:
  - Following pandas, the `closed` parameters of :py:func:`cftime_range` and
    :py:func:`date_range` are deprecated in favor of the `inclusive` parameters,
    and will be removed in a future version of xarray (:issue:`6985`:,
    :pull:`7373`).
 - Bug fixes:
  - :py:func:`xarray.concat` can now concatenate variables present in some datasets but
    not others (:issue:`508`, :pull:`7400`).
  - Handle ``keep_attrs`` option in binary operators of :py:meth:`Dataset` (:issue:`7390`, :pull:`7391`).
  - Improve error message when using dask in :py:func:`apply_ufunc` with ``output_sizes`` not supplied. (:pull:`7509`)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=78
2023-03-09 20:44:38 +00:00
c548749169 Accepting request 1056777 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1056777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=40
2023-01-08 20:25:20 +00:00
Sebastian Wagner
6c35ab0ce3 Accepting request 1056773 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 2022.12.0
  * This release includes a number of bug fixes and experimental
    support for Zarr V3.
  ## New Features
  * Enable using offset and origin arguments in
    DataArray.resample() and Dataset.resample() (GH7266, PR7284).
    By Spencer Clark.
  * Add experimental support for Zarr’s in-progress V3
    specification. (PR6475). By Gregory Lee and Joe Hamman.
  ## Breaking changes
  * The minimum versions of some dependencies were changed
    (PR7300):
  ## Deprecations
  * The PyNIO backend has been deprecated (GH4491, PR7301). By Joe
    Hamman.
  ## Bug fixes
  * Fix handling of coordinate attributes in where(). (GH7220,
    PR7229) By Sam Levang.
  * Import nc_time_axis when needed (GH7275, PR7276). By Michael
    Niklas.
  * Fix static typing of xr.polyval() (GH7312, PR7315). By Michael
    Niklas.
  * Fix multiple reads on fsspec S3 files by resetting file pointer
    to 0 when reading file streams (GH6813, PR7304). By David Hoese
    and Wei Ji Leong.
  * Fix Dataset.assign_coords() resetting all dimension coordinates
    to default (pandas) index (GH7346, PR7347). By Benoît Bovy.

OBS-URL: https://build.opensuse.org/request/show/1056773
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=76
2023-01-07 14:07:26 +00:00
4b53f55261 Accepting request 1037357 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1037357
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=39
2022-11-23 08:48:05 +00:00
Sebastian Wagner
5a954fae78 Accepting request 1037318 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 2022.11.0
  * This release brings a number of bugfixes and documentation
    improvements. Both text and HTML reprs now have a new "Indexes"
    section, which we expect will help with development of new
    Index objects. This release also features more support for the
    Python Array API.
  ## New Features
  * Add static typing to plot accessors (GH6949, PR7052). By
    Michael Niklas.
  * Display the indexes in a new section of the text and HTML reprs
    (PR6795, PR7183, PR7185) By Justus Magin and Benoît Bovy.
  * Added methods DataArrayGroupBy.cumprod() and
    DatasetGroupBy.cumprod(). (PR5816) By Patrick Naylor
  ## Breaking changes
  * repr(ds) may not show the same result because it doesn’t load
    small, lazy data anymore. Use ds.head().load() when wanting to
    see just a sample of the data. (GH6722, PR7203). By Jimmy
    Westling.
  * Many arguments of plotmethods have been made keyword-only.
  * xarray.plot.plot module renamed to xarray.plot.dataarray_plot
    to prevent shadowing of the plot method. (GH6949, PR7052). By
    Michael Niklas.
  ## Deprecations
  * Positional arguments for all plot methods have been deprecated
    (GH6949, PR7052). By Michael Niklas.
  * xarray.plot.FacetGrid.axes has been renamed to
    xarray.plot.FacetGrid.axs because it’s not clear if axes refers
    to single or multiple Axes instances. This aligns with
    matplotlib.pyplot.subplots. (PR7194) By Jimmy Westling.
  ## Bug fixes

OBS-URL: https://build.opensuse.org/request/show/1037318
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=74
2022-11-22 15:35:40 +00:00
0c162d1e10 Accepting request 1029886 from devel:languages:python:numeric
- Update to 2022.10.0:
  - This release brings numerous bugfixes, a change in minimum
    supported versions, and a new scatter plot method for
    DataArrays.
  - Also, temporarily import loop_in_thread fixture from
    distributed.
- Update to 2022.9.0:
  - This release brings a large number of bugfixes and
    documentation improvements, as well as an external interface
    for setting custom indexes!

OBS-URL: https://build.opensuse.org/request/show/1029886
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=38
2022-10-19 11:17:51 +00:00
8cae4b873e Remove conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=72
2022-10-18 22:37:05 +00:00
a47fd6be25 - Also, temporarily import loop_in_thread fixture from
distributed.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=71
2022-10-18 22:27:13 +00:00
36150b10c4 - Update to 2022.10.0:
- This release brings numerous bugfixes, a change in minimum
    supported versions, and a new scatter plot method for
    DataArrays.
- Update to 2022.9.0:
  - This release brings a large number of bugfixes and
    documentation improvements, as well as an external interface
    for setting custom indexes!

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=70
2022-10-18 22:26:22 +00:00
de041fdb7a Accepting request 997996 from devel:languages:python:numeric
- specfile:
  * updated requirements versions
  * added new requirements: packaging and flox (recommends)
  * require python >= 3.8
  * update line numbers in patches
  * changed README.rst->README.md
- update to version 2022.6.0:
  * This release brings a number of bug fixes and improvements, most
    notably a major internal refactor of the indexing functionality,
    the use of flox in groupby operations, and experimental support
    for the new Python Array API standard. It also stops testing
    support for the abandoned PyNIO.
  * Much effort has been made to preserve backwards compatibility as
    part of the indexing refactor. We are aware of one unfixed issue.
  * New Features
    + Add Dataset.dtypes, core.coordinates.DatasetCoordinates.dtypes,
      core.coordinates.DataArrayCoordinates.dtypes properties: Mapping
      from variable names to dtypes. (PR6706) By Michael Niklas.
    + Initial typing support for groupby(), rolling(), rolling_exp(),
      coarsen(), weighted(), resample(), (PR6702) By Michael Niklas.
    + Experimental support for wrapping any array type that conforms
      to the python array api standard. (PR6804) By Tom White.
  * Bug fixes
    + save_mfdataset() now passes **kwargs on to Dataset.to_netcdf(),
      allowing the encoding and unlimited_dims options with
      save_mfdataset(). (GH6684) By Travis A. O’Brien.
    + Fix backend support of pydap versions <3.3.0 (GH6648,
      PR6656). By Hauke Schulz.
    + Dataset.where() with drop=True now behaves correctly with mixed
      dimensions. (GH6227, PR6690) By Michael Niklas.
    + Accommodate newly raised OutOfBoundsTimedelta error in the
      development version of pandas when decoding times outside the
      range that can be represented with nanosecond-precision values
      (GH6716, PR6717). By Spencer Clark.
    + open_dataset() with dask and ~ in the path now resolves the home
      directory instead of raising an error. (GH6707, PR6710) By
      Michael Niklas.
    + DataArrayRolling.__iter__() with center=True now works
      correctly. (GH6739, PR6744) By Michael Niklas.
  * Internal Changes
    + xarray.core.groupby, xarray.core.rolling,
      xarray.core.rolling_exp, xarray.core.weighted and
      xarray.core.resample modules are no longer imported by
      default. (PR6702)
- changes from version 2022.06.0rc0:
  * This pre-release brings a number of bug fixes and improvements,
    most notably a major internal refactor of the indexing
    functionality and the use of flox in groupby operations. It also
    stops testing support for the abandoned PyNIO.
  * Known Regressions
    + reset_coords(drop=True) does not create indexes (GH6607)
  * New Features
    + The zarr backend is now able to read NCZarr. By Mattia Almansi.
    + Add a weighted quantile method to DatasetWeighted and
      DataArrayWeighted (PR6059). By Christian Jauvin and David Huard.
    + Add a create_index=True parameter to Dataset.stack() and
      DataArray.stack() so that the creation of multi-indexes is
      optional (PR5692). By Benoît Bovy.
    + Multi-index levels are now accessible through their own, regular
      coordinates instead of virtual coordinates (PR5692). By Benoît
      Bovy.
    + Add a display_values_threshold option to control the total
      number of array elements which trigger summarization rather than
      full repr in (numpy) array detailed views of the html repr
      (PR6400). By Benoît Bovy.
    + Allow passing chunks in kwargs form to Dataset.chunk(),
      DataArray.chunk(), and Variable.chunk(). (PR6471) By Tom
      Nicholas.
    + Add core.groupby.DatasetGroupBy.cumsum() and
      core.groupby.DataArrayGroupBy.cumsum(). By Vladislav Skripniuk
      and Deepak Cherian. (PR3147, PR6525, GH3141)
    + Expose inline_array kwarg from dask.array.from_array in
      open_dataset(), Dataset.chunk(), DataArray.chunk(), and
      Variable.chunk(). (PR6471)
    + Expose the inline_array kwarg from dask.array.from_array() in
      open_dataset(), Dataset.chunk(), DataArray.chunk(), and
      Variable.chunk(). (PR6471) By Tom Nicholas.
    + polyval() now supports Dataset and DataArray args of any shape,
      is faster and requires less memory. (PR6548) By Michael Niklas.
    + Improved overall typing.
    + Dataset.to_dict() and DataArray.to_dict() may now optionally
      include encoding attributes. (PR6635) By Joe Hamman.
    + Upload development versions to TestPyPI. By Justus Magin.
  * Breaking changes
    + PyNIO support is now untested.
    + The Dataset and DataArray rename" methods do not implicitly add
      or drop indexes. (PR5692). By Benoît Bovy.
    + Many arguments like keep_attrs, axis, and skipna are now keyword
      only for all reduction operations like .mean. By Deepak Cherian,
      Jimmy Westling.
    + Xarray’s ufuncs have been removed, now that they can be replaced
      by numpy’s ufuncs in all supported versions of numpy. By
      Maximilian Roos.
    + xr.polyval() now uses the coord argument directly instead of its
      index coordinate. (PR6548) By Michael Niklas.
  * Bug fixes
    + Dataset.to_zarr() now allows to write all attribute types
      supported by zarr-python. By Mattia Almansi.
    + Set skipna=None for all quantile methods
      (e.g. Dataset.quantile()) and ensure it skips missing values for
      float dtypes (consistent with other methods). This should not
      change the behavior (PR6303). By Mathias Hauser.
    + Many bugs fixed by the explicit indexes refactor, mainly related
      to multi-index (virtual) coordinates. See the corresponding
      pull-request on GitHub for more details. (PR5692). By Benoît
      Bovy.
    + Fixed “unhashable type” error trying to read NetCDF file with
      variable having its ‘units’ attribute not str
      (e.g. numpy.ndarray) (GH6368). By Oleh Khoma.
    + Omit warning about specified dask chunks separating chunks on
      disk when the underlying array is empty (e.g., because of an
      empty dimension) (GH6401). By Joseph K Aicher.
    + Fixed the poor html repr performance on large multi-indexes
      (PR6400). By Benoît Bovy.
    + Allow fancy indexing of duck dask arrays along multiple
      dimensions. (PR6414) By Justus Magin.
    + In the API for backends, support dimensions that express their
      preferred chunk sizes as a tuple of integers. (GH6333, PR6334)
      By Stan West.
    + Fix bug in where() when passing non-xarray objects with
      keep_attrs=True. (GH6444, PR6461) By Sam Levang.
    + Allow passing both other and drop=True arguments to
      DataArray.where() and Dataset.where() (PR6466, PR6467). By
      Michael Delgado.
    + Ensure dtype encoding attributes are not added or modified on
      variables that contain datetime-like values prior to being
      passed to xarray.conventions.decode_cf_variable() (GH6453,
      PR6489). By Spencer Clark.
    + Dark themes are now properly detected in Furo-themed Sphinx
      documents (GH6500, PR6501). By Kevin Paul.
    + Dataset.isel(), DataArray.isel() with drop=True works as
      intended with scalar DataArray indexers. (GH6554, PR6579) By
      Michael Niklas.
    + Fixed silent overflow issue when decoding times encoded with
      32-bit and below unsigned integer data types (GH6589,
      PR6598). By Spencer Clark.
    + Fixed .chunks loading lazy data (GH6538). By Deepak Cherian.
  * Documentation
    + Revise the documentation for developers on specifying a
      backend’s preferred chunk sizes. In particular, correct the
      syntax and replace lists with tuples in the examples. (GH6333,
      PR6334) By Stan West.
    + Mention that DataArray.rename() can rename coordinates. (GH5458,
      PR6665) By Michael Niklas.
    + Added examples to Dataset.thin() and DataArray.thin() By Emma
      Marshall.
  * Performance
    + GroupBy binary operations are now vectorized. Previously this
      involved looping over all groups. (GH5804, PR6160) By Deepak
      Cherian.
    + Substantially improved GroupBy operations using flox. This is
      auto-enabled when flox is installed. Use
      xr.set_options(use_flox=False) to use the old
      algorithm. (GH4473, GH4498, GH659, GH2237, PR271). By Deepak
      Cherian, Anderson Banihirwe, Jimmy Westling.
  * Internal Changes
    + Many internal changes due to the explicit indexes refactor. See
      the corresponding pull-request on GitHub for more
      details. (PR5692). By Benoît Bovy.

OBS-URL: https://build.opensuse.org/request/show/997996
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=37
2022-08-19 15:56:07 +00:00
2bf6b01b67 add missing requirement
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=68
2022-08-18 14:38:58 +00:00
7efc31a1bf Accepting request 995160 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/995160
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=67
2022-08-18 14:37:42 +00:00
a66c3b0d3a Accepting request 961121 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/961121
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=36
2022-03-11 20:41:44 +00:00
Sebastian Wagner
6d26ccab4e - update to version 2022.03.0:
- This release brings a number of small improvements, as well as a move to `calendar versioning <https://calver.org/>`_ (:issue:`6176`).:
 - Many thanks to the 16 contributors to the v2022.02.0 release!:
 - Aaron Spring, Alan D. Snow, Anderson Banihirwe, crusaderky, Illviljan, Joe Hamman, Jonas Gliß,:
 - Lukas Pilz, Martin Bergemann, Mathias Hauser, Maximilian Roos, Romain Caneill, Stan West, Stijn Van Hoey,:
 - Tobias Kölling, and Tom Nicholas.:
 - New Features:
  - Enabled multiplying tick offsets by floats. Allows ``float`` ``n`` in
    :py:meth:`CFTimeIndex.shift` if ``shift_freq`` is between ``Day``
    and ``Microsecond``. (:issue:`6134`, :pull:`6135`).
    By `Aaron Spring <https://github.com/aaronspring>`_.
  - Enbable to provide more keyword arguments to `pydap` backend when reading
    OpenDAP datasets (:issue:`6274`).
    By `Jonas Gliß <https://github.com/jgliss>`.
  - Allow :py:meth:`DataArray.drop_duplicates` to drop duplicates along multiple dimensions at once,
    and add :py:meth:`Dataset.drop_duplicates`. (:pull:`6307`)
    By `Tom Nicholas <https://github.com/TomNicholas>`_.
 - Breaking changes:
  - Renamed the ``interpolation`` keyword of all ``quantile`` methods (e.g. :py:meth:`DataArray.quantile`)
    to ``method`` for consistency with numpy v1.22.0 (:pull:`6108`).
    By `Mathias Hauser <https://github.com/mathause>`_.
 - Deprecations:
 - Bug fixes:
  - Variables which are chunked using dask in larger (but aligned) chunks than the target zarr chunk size
    can now be stored using `to_zarr()` (:pull:`6258`) By `Tobias Kölling <https://github.com/d70-t>`_.
  - Multi-file datasets containing encoded :py:class:`cftime.datetime` objects can be read in parallel again (:issue:`6226`, :pull:`6249`, :pull:`6305`).  By `Martin Bergemann <https://github.com/antarcticrainforest>`_ and `Stan West <https://github.com/stanwest>`_.
 - Documentation:
  - Delete files of datasets saved to disk while building the documentation and enable
    building on Windows via `sphinx-build` (:pull:`6237`).
    By `Stan West <https://github.com/stanwest>`_.
 - Internal Changes:
- update to version 0.21.1:
 - This is a bugfix release to resolve (:issue:`6216`, :pull:`6207`).:
 - Bug fixes:
  - Add `packaging` as a dependency to Xarray (:issue:`6216`, :pull:`6207`).
    By `Sebastian Weigand <https://github.com/s-weigand>`_ and `Joe Hamman <https://github.com/jhamman>`_.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=65
2022-03-04 18:01:07 +00:00
db47502d37 Accepting request 953061 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/953061
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=35
2022-02-10 22:12:11 +00:00
Sebastian Wagner
236ef0cc63 - update to version 0.21.1:
- This is a bugfix release to resolve (:issue:`6216`, :pull:`6207`).:
 - Bug fixes:
  - Add `packaging` as a dependency to Xarray (:issue:`6216`, :pull:`6207`).
    By `Sebastian Weigand <https://github.com/s-weigand>`_ and `Joe Hamman <https://github.com/jhamman>`_.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=64
2022-02-02 19:56:44 +00:00
Sebastian Wagner
81aa8eb667 - update to version 0.21.0:
- Many thanks to the 20 contributors to the v0.21.0 release!:
 - Abel Aoun, Anderson Banihirwe, Ant Gib, Chris Roat, Cindy Chiao,:
 - Deepak Cherian, Dominik Stańczak, Fabian Hofmann, Illviljan, Jody Klymak, Joseph:
 - K Aicher, Mark Harfouche, Mathias Hauser, Matthew Roeschke, Maximilian Roos,:
 - Michael Delgado, Pascal Bourgault, Pierre, Ray Bell, Romain Caneill, Tim Heap,:
 - Tom Nicholas, Zeb Nicholls, joseph nowak, keewis.:
 - New Features:
  - New top-level function :py:func:`cross`. (:issue:`3279`, :pull:`5365`).
    By `Jimmy Westling <https://github.com/illviljan>`_.
  - ``keep_attrs`` support for :py:func:`where` (:issue:`4141`, :issue:`4682`, :pull:`4687`).
    By `Justus Magin <https://github.com/keewis>`_.
  - 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` (:issue:`6112`)
    By `Joseph Nowak <https://github.com/josephnowak>`_.
 - Breaking changes:
  - Rely on matplotlib's default datetime converters instead of pandas' (:issue:`6102`, :pull:`6109`).
    By `Jimmy Westling <https://github.com/illviljan>`_.
  - 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. (:issue:`5546`, :pull:`5662`)
    By `Jimmy Westling <https://github.com/illviljan>`_.
 - Deprecations:
  - Removed the lock kwarg from the zarr and pydap backends, completing the deprecation cycle started in :issue:`5256`.
    By `Tom Nicholas <https://github.com/TomNicholas>`_.
  - Support for ``python 3.7`` has been dropped. (:pull:`5892`)
    By `Jimmy Westling <https://github.com/illviljan>`_.
 - Bug fixes:
  - Preserve chunks when creating a :py:class:`DataArray` from another :py:class:`DataArray`
    (:pull:`5984`). By `Fabian Hofmann <https://github.com/FabianHofmann>`_.
  - Properly support :py:meth:`DataArray.ffill`, :py:meth:`DataArray.bfill`, :py:meth:`Dataset.ffill` and :py:meth:`Dataset.bfill` along chunked dimensions (:issue:`6112`).
    By `Joseph Nowak <https://github.com/josephnowak>`_.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=63
2022-01-29 09:24:37 +00:00
9ea34d4aa6 Accepting request 949122 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/949122
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=34
2022-01-26 20:26:51 +00:00
Sebastian Wagner
c3aaff2804 Accepting request 948454 from home:bnavigator:branches:devel:languages:python:numeric
- Don't test with dask and distributed in python310: not supported
  yet

OBS-URL: https://build.opensuse.org/request/show/948454
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=62
2022-01-25 20:21:34 +00:00
3027517c45 Accepting request 941018 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/941018
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=33
2021-12-17 22:54:27 +00:00
Sebastian Wagner
a798520ada - update to version 0.20.2:
- This is a bugfix release to resolve (:issue:`3391`, :issue:`5715`). It also:
 - includes performance improvements in unstacking to a ``sparse`` array and a:
 - number of documentation improvements.:
 - Many thanks to the 20 contributors:
 - Aaron Spring, Alexandre Poux, Deepak Cherian, Enrico Minack, Fabien Maussion,:
 - Giacomo Caria, Gijom, Guillaume Maze, Illviljan, Joe Hamman, Joseph Hardin, Kai:
 - Mühlbauer, Matt Henderson, Maximilian Roos, Michael Delgado, Robert Gieseke,:
 - Sebastian Weigand and Stephan Hoyer.:
 - Breaking changes:
  - Use complex nan when interpolating complex values out of bounds by default (instead of real nan) (:pull:`6019`).
    By `Alexandre Poux <https://github.com/pums974>`_.
 - Performance:
  - Significantly faster unstacking to a ``sparse`` array. :pull:`5577`
    By `Deepak Cherian <https://github.com/dcherian>`_.
 - Bug fixes:
  - :py:func:`xr.map_blocks` and :py:func:`xr.corr` now work when dask is not installed (:issue:`3391`, :issue:`5715`, :pull:`5731`).
    By `Gijom <https://github.com/Gijom>`_.
  - Fix plot.line crash for data of shape ``(1, N)`` in _title_for_slice on format_item (:pull:`5948`).
    By `Sebastian Weigand <https://github.com/s-weigand>`_.
  - Fix a regression in the removal of duplicate backend entrypoints (:issue:`5944`, :pull:`5959`)
    By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
 - Documentation:
  - Better examples in docstrings for groupby and resampling reductions (:pull:`5871`).
    By `Deepak Cherian <https://github.com/dcherian>`_,
    `Maximilian Roos <https://github.com/max-sixty>`_,
    `Jimmy Westling <https://github.com/illviljan>`_ .
 - Internal Changes:
  - Use ``importlib`` to replace functionality of ``pkg_resources`` in
    backend plugins tests. (:pull:`5959`).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=61
2021-12-10 08:01:56 +00:00
72125fddb2 Accepting request 933115 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/933115
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=32
2021-11-22 22:04:31 +00:00
Sebastian Wagner
dbdd68f628 - update to version 0.20.1:
- This is a bugfix release to fix :issue:`5930`.:
 - Bug fixes:
  - Fix a regression in the detection of the backend entrypoints (:issue:`5930`, :pull:`5931`)
    By `Justus Magin <https://github.com/keewis>`_.
 - Documentation:
  - Significant improvements to  :ref:`api`. By `Deepak Cherian <https://github.com/dcherian>`_.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=60
2021-11-15 14:47:43 +00:00
dd7d923faf Accepting request 930552 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/930552
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=31
2021-11-10 20:46:27 +00:00
Sebastian Wagner
3cd7acab45 - update to version 0.20.0:
- This release brings improved support for pint arrays, methods for weighted standard deviation, variance,:
 - and sum of squares, the option to disable the use of the bottleneck library, significantly improved performance of:
 - unstack, as well as many bugfixes and internal changes.:
 - Many thanks to the 38 contributors to this release!:
 - Aaron Spring, Akio Taniguchi, Alan D. Snow, arfy slowy, Benoit Bovy, Christian Jauvin, crusaderky, Deepak Cherian,:
 - Giacomo Caria, Illviljan, James Bourbeau, Joe Hamman, Joseph K Aicher, Julien Herzen, Kai Mühlbauer,:
 - keewis, lusewell, Martin K. Scherer, Mathias Hauser, Max Grover, Maxime Liquet, Maximilian Roos, Mike Taves, pmav99,:
 - Pushkar Kopparla, Ray Bell, Rio McMahon, Scott Staniewicz, Spencer Clark, Stefan Bender, Taher Chegini, Thomas Nicholas,:
 - Tomas Chor, Tom Augspurger, Victor Negîrneac, Zachary Moon, and Zeb Nicholls.:
 - New Features:
  - Add ``std``, ``var``,  ``sum_of_squares`` to :py:class:`~core.weighted.DatasetWeighted` and :py:class:`~core.weighted.DataArrayWeighted`.
    By `Christian Jauvin <https://github.com/cjauvin>`_.
  - Added a :py:func:`get_options` method to xarray's root namespace (:issue:`5698`, :pull:`5716`)
    By `Pushkar Kopparla <https://github.com/pkopparla>`_.
  - Xarray now does a better job rendering variable names that are long LaTeX sequences when plotting (:issue:`5681`, :pull:`5682`).
    By `Tomas Chor <https://github.com/tomchor>`_.
  - Add an option (``"use_bottleneck"``) to disable the use of ``bottleneck`` using :py:func:`set_options` (:pull:`5560`)
    By `Justus Magin <https://github.com/keewis>`_.
  - Added ``**kwargs`` argument to :py:meth:`open_rasterio` to access overviews (:issue:`3269`).
    By `Pushkar Kopparla <https://github.com/pkopparla>`_.
  - Added ``storage_options`` argument to :py:meth:`to_zarr` (:issue:`5601`).
    By `Ray Bell <https://github.com/raybellwaves>`_, `Zachary Blackwood <https://github.com/blackary>`_ and
    `Nathan Lis <https://github.com/wxman22>`_.
  - Histogram plots are set with a title displaying the scalar coords if any, similarly to the other plots (:issue:`5791`, :pull:`5792`).
    By `Maxime Liquet <https://github.com/maximlt>`_.
  - Slice plots display the coords units in the same way as x/y/colorbar labels (:pull:`5847`).
    By `Victor Negîrneac <https://github.com/caenrigen>`_.
  - Added a new :py:attr:`Dataset.chunksizes`, :py:attr:`DataArray.chunksizes`, and :py:attr:`Variable.chunksizes`
    property, which will always return a mapping from dimension names to chunking pattern along that dimension,

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=59
2021-11-02 20:27:46 +00:00
ecab81b6e4 Accepting request 921048 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/921048
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=30
2021-09-23 21:03:56 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
867a236fca Accepting request 674708 from devel:languages:python:numeric
- update to version 0.11.3
- Fix build errors (forwarded request 674693 from TheBlackCat)

OBS-URL: https://build.opensuse.org/request/show/674708
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=8
2019-02-14 13:35:46 +00:00
Sebastian Wagner
72c6f4f532 Accepting request 674693 from home:TheBlackCat:branches:devel:languages:python:numeric
- update to version 0.11.3
- Fix build errors

OBS-URL: https://build.opensuse.org/request/show/674693
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=9
2019-02-13 18:22:35 +00:00
5c5eadc22d Accepting request 667881 from devel:languages:python:numeric
- update to version 0.11.2:
 - Removes inadvertently introduced setup dependency on pytest-runner (:issue:`2641`). Otherwise, this release is exactly equivalent to 0.11.1.
 - Warning:
  - This is the last xarray release that will support Python 2.7. Future releases will be Python 3 only, but older versions of xarray will always be available for Python 2.7 users. For the more details, see:
- update to version 0.11.1:
 - Breaking changes
  - Minimum rasterio version increased from 0.36 to 1.0 (for open_rasterio)
  - Time bounds variables are now also decoded according to CF conventions (:issue:`2565`). The previous behavior was to decode them only if they had specific time attributes, now these attributes are copied automatically from the corresponding time coordinate. This might brake downstream code that was relying on these variables to be not decoded. By Fabien Maussion.
 - Enhancements
  - Ability to read and write consolidated metadata in zarr stores (:issue:`2558`). By Ryan Abernathey.
  - :py:class:`CFTimeIndex` uses slicing for string indexing when possible (like :py:class:`pandas.DatetimeIndex`), which avoids unnecessary copies. By Stephan Hoyer
  - Enable passing rasterio.io.DatasetReader or rasterio.vrt.WarpedVRT to open_rasterio instead of file path string. Allows for in-memory reprojection, see (:issue:`2588`). By Scott Henderson.
  - Like :py:class:`pandas.DatetimeIndex`, :py:class:`CFTimeIndex` now supports "dayofyear" and "dayofweek" accessors (:issue:`2597`). Note this requires a version of cftime greater than 1.0.2. By Spencer Clark.
  - The option 'warn_for_unclosed_files' (False by default) has been added to allow users to enable a warning when files opened by xarray are deallocated but were not explicitly closed. This is mostly useful for debugging; we recommend enabling it in your test suites if you use xarray for IO. By Stephan Hoyer
  - Support Dask HighLevelGraphs by Matthew Rocklin.
  - :py:meth:`DataArray.resample` and :py:meth:`Dataset.resample` now supports the loffset kwarg just like Pandas. By Deepak Cherian
  - Datasets are now guaranteed to have a 'source' encoding, so the source file name is always stored (:issue:`2550`). By Tom Nicholas.
  - The apply methods for DatasetGroupBy, DataArrayGroupBy, DatasetResample and DataArrayResample now support passing positional arguments to the applied function as a tuple to the args argument. By Matti Eskelinen.
  - 0d slices of ndarrays are now obtained directly through indexing, rather than extracting and wrapping a scalar, avoiding unnecessary copying. By Daniel Wennberg.
  - Added support for fill_value with :py:meth:`~xarray.DataArray.shift` and :py:meth:`~xarray.Dataset.shift` By Maximilian Roos
 - Bug fixes
  - Ensure files are automatically closed, if possible, when no longer referenced by a Python variable (:issue:`2560`). By Stephan Hoyer
  - Fixed possible race conditions when reading/writing to disk in parallel (:issue:`2595`). By Stephan Hoyer
  - Fix h5netcdf saving scalars with filters or chunks (:issue:`2563`). By Martin Raspaud.
  - Fix parsing of _Unsigned attribute set by OPENDAP servers. (:issue:`2583`). By Deepak Cherian
  - Fix failure in time encoding when exporting to netCDF with versions of pandas less than 0.21.1 (:issue:`2623`). By Spencer Clark.
  - Fix MultiIndex selection to update label and level (:issue:`2619`). By Keisuke Fujii.

OBS-URL: https://build.opensuse.org/request/show/667881
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=7
2019-01-24 13:14:41 +00:00
Sebastian Wagner
eb03ec64d8 - update to version 0.11.2:
- Removes inadvertently introduced setup dependency on pytest-runner (:issue:`2641`). Otherwise, this release is exactly equivalent to 0.11.1.
 - Warning:
  - This is the last xarray release that will support Python 2.7. Future releases will be Python 3 only, but older versions of xarray will always be available for Python 2.7 users. For the more details, see:
- update to version 0.11.1:
 - Breaking changes
  - Minimum rasterio version increased from 0.36 to 1.0 (for open_rasterio)
  - Time bounds variables are now also decoded according to CF conventions (:issue:`2565`). The previous behavior was to decode them only if they had specific time attributes, now these attributes are copied automatically from the corresponding time coordinate. This might brake downstream code that was relying on these variables to be not decoded. By Fabien Maussion.
 - Enhancements
  - Ability to read and write consolidated metadata in zarr stores (:issue:`2558`). By Ryan Abernathey.
  - :py:class:`CFTimeIndex` uses slicing for string indexing when possible (like :py:class:`pandas.DatetimeIndex`), which avoids unnecessary copies. By Stephan Hoyer
  - Enable passing rasterio.io.DatasetReader or rasterio.vrt.WarpedVRT to open_rasterio instead of file path string. Allows for in-memory reprojection, see (:issue:`2588`). By Scott Henderson.
  - Like :py:class:`pandas.DatetimeIndex`, :py:class:`CFTimeIndex` now supports "dayofyear" and "dayofweek" accessors (:issue:`2597`). Note this requires a version of cftime greater than 1.0.2. By Spencer Clark.
  - The option 'warn_for_unclosed_files' (False by default) has been added to allow users to enable a warning when files opened by xarray are deallocated but were not explicitly closed. This is mostly useful for debugging; we recommend enabling it in your test suites if you use xarray for IO. By Stephan Hoyer
  - Support Dask HighLevelGraphs by Matthew Rocklin.
  - :py:meth:`DataArray.resample` and :py:meth:`Dataset.resample` now supports the loffset kwarg just like Pandas. By Deepak Cherian
  - Datasets are now guaranteed to have a 'source' encoding, so the source file name is always stored (:issue:`2550`). By Tom Nicholas.
  - The apply methods for DatasetGroupBy, DataArrayGroupBy, DatasetResample and DataArrayResample now support passing positional arguments to the applied function as a tuple to the args argument. By Matti Eskelinen.
  - 0d slices of ndarrays are now obtained directly through indexing, rather than extracting and wrapping a scalar, avoiding unnecessary copying. By Daniel Wennberg.
  - Added support for fill_value with :py:meth:`~xarray.DataArray.shift` and :py:meth:`~xarray.Dataset.shift` By Maximilian Roos
 - Bug fixes
  - Ensure files are automatically closed, if possible, when no longer referenced by a Python variable (:issue:`2560`). By Stephan Hoyer
  - Fixed possible race conditions when reading/writing to disk in parallel (:issue:`2595`). By Stephan Hoyer
  - Fix h5netcdf saving scalars with filters or chunks (:issue:`2563`). By Martin Raspaud.
  - Fix parsing of _Unsigned attribute set by OPENDAP servers. (:issue:`2583`). By Deepak Cherian
  - Fix failure in time encoding when exporting to netCDF with versions of pandas less than 0.21.1 (:issue:`2623`). By Spencer Clark.
  - Fix MultiIndex selection to update label and level (:issue:`2619`). By Keisuke Fujii.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=7
2019-01-03 19:39:55 +00:00
bd33329376 Accepting request 648780 from devel:languages:python:numeric
- update to version 0.11.0
  * Enhancements
    + xarray.DataArray.plot.line() can now accept multidimensional 
      coordinate variables as input. hue must be a dimension name 
      in this case. (GH2407) By Deepak Cherian.
    + Added support for Python 3.7. (GH2271). By Joe Hamman.
    + Added support for plotting data with pandas.Interval coordinates, 
      such as those created by groupby_bins() By Maximilian Maahn.
    + Added shift() for shifting the values of a CFTimeIndex by a 
      specified frequency. (GH2244). By Spencer Clark.
    + Added support for using cftime.datetime coordinates with 
      differentiate(), differentiate(), interp(), and interp(). 
      By Spencer Clark
    + There is now a global option to either always keep or always 
      discard dataset and dataarray attrs upon operations. The option 
      is set with xarray.set_options(keep_attrs=True), and the default 
      is to use the old behaviour. By Tom Nicholas.
    + Added a new backend for the GRIB file format based on ECMWF 
      cfgrib python driver and ecCodes C-library. (GH2475) By 
      Alessandro Amici, sponsored by ECMWF.
    + Resample now supports a dictionary mapping from dimension to 
      frequency as its first argument, e.g., 
      data.resample({'time': '1D'}).mean(). This is consistent with 
      other xarray functions that accept either dictionaries or 
      keyword arguments. By Stephan Hoyer.
    + The preferred way to access tutorial data is now to load it 
      lazily with xarray.tutorial.open_dataset(). 
      xarray.tutorial.load_dataset() calls Dataset.load() prior to 
      returning (and is now deprecated). This was changed in order 
      to facilitate using tutorial datasets with dask. By Joe Hamman. (forwarded request 648746 from mcalabkova)

OBS-URL: https://build.opensuse.org/request/show/648780
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=6
2018-11-14 13:43:18 +00:00
Sebastian Wagner
57dbb695d0 Accepting request 648746 from home:mcalabkova:branches:devel:languages:python:numeric
- update to version 0.11.0
  * Enhancements
    + xarray.DataArray.plot.line() can now accept multidimensional 
      coordinate variables as input. hue must be a dimension name 
      in this case. (GH2407) By Deepak Cherian.
    + Added support for Python 3.7. (GH2271). By Joe Hamman.
    + Added support for plotting data with pandas.Interval coordinates, 
      such as those created by groupby_bins() By Maximilian Maahn.
    + Added shift() for shifting the values of a CFTimeIndex by a 
      specified frequency. (GH2244). By Spencer Clark.
    + Added support for using cftime.datetime coordinates with 
      differentiate(), differentiate(), interp(), and interp(). 
      By Spencer Clark
    + There is now a global option to either always keep or always 
      discard dataset and dataarray attrs upon operations. The option 
      is set with xarray.set_options(keep_attrs=True), and the default 
      is to use the old behaviour. By Tom Nicholas.
    + Added a new backend for the GRIB file format based on ECMWF 
      cfgrib python driver and ecCodes C-library. (GH2475) By 
      Alessandro Amici, sponsored by ECMWF.
    + Resample now supports a dictionary mapping from dimension to 
      frequency as its first argument, e.g., 
      data.resample({'time': '1D'}).mean(). This is consistent with 
      other xarray functions that accept either dictionaries or 
      keyword arguments. By Stephan Hoyer.
    + The preferred way to access tutorial data is now to load it 
      lazily with xarray.tutorial.open_dataset(). 
      xarray.tutorial.load_dataset() calls Dataset.load() prior to 
      returning (and is now deprecated). This was changed in order 
      to facilitate using tutorial datasets with dask. By Joe Hamman.

OBS-URL: https://build.opensuse.org/request/show/648746
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=5
2018-11-13 19:35:56 +00:00
c41b6b0cb6 Accepting request 638355 from devel:languages:python:numeric
- update to version 0.10.9:
  * Enhancements
    + differentiate() and differentiate() are newly added. (GH1332) By
      Keisuke Fujii.
    + Default colormap for sequential and divergent data can now be
      set via set_options() (GH2394) By Julius Busecke.
    + min_count option is newly supported in sum(), prod() and sum(),
      and prod(). (GH2230) By Keisuke Fujii.
    + plot() now accepts the kwargs xscale, yscale, xlim, ylim,
      xticks, yticks just like Pandas. Also xincrease=False,
      yincrease=False now use matplotlib’s axis inverting methods
      instead of setting limits. By Deepak Cherian. (GH2224)
    + DataArray coordinates and Dataset coordinates and data variables
      are now displayed as a b … y z rather than a b c d …. (GH1186)
      By Seth P.
    + A new CFTimeIndex-enabled cftime_range() function for use in
      generating dates from standard or non-standard calendars. By
      Spencer Clark.
    + When interpolating over a datetime64 axis, you can now provide a
      datetime string instead of a datetime64
      object. E.g. da.interp(time='1991-02-01') (GH2284) By Deepak
      Cherian.
    + A clear error message is now displayed if a set or dict is
      passed in place of an array (GH2331) By Maximilian Roos.
    + Applying unstack to a large DataArray or Dataset is now much
      faster if the MultiIndex has not been modified after stacking
      the indices. (GH1560) By Maximilian Maahn.
    + You can now control whether or not to offset the coordinates
      when using the roll method and the current behavior, coordinates
      rolled by default, raises a deprecation warning unless

OBS-URL: https://build.opensuse.org/request/show/638355
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=5
2018-10-01 06:17:06 +00:00
3d4028d757 Accepting request 624539 from devel:languages:python
- specfile:
  * updated dependencies according to setup.py
  * removed devel dependency (noarch)
  * be more specific in %files section
- update to version 0.10.8:
  * Xarray no longer supports python 3.4. Additionally, the minimum
    supported versions of the following dependencies has been updated
    and/or clarified:
    + Pandas: 0.18 -> 0.19
    + NumPy: 1.11 -> 1.12
    + Dask: 0.9 -> 0.16
    + Matplotlib: unspecified -> 1.5
    (:issue:`2204`). By Joe Hamman.
  * Enhancements
    + :py:meth:`~xarray.DataArray.interp_like` and
      :py:meth:`~xarray.Dataset.interp_like` methods are newly
      added. (:issue:`2218`) By Keisuke Fujii.
    + Added support for curvilinear and unstructured generic grids to
      :py:meth:`~xarray.DataArray.to_cdms2` and
      :py:meth:`~xarray.DataArray.from_cdms2` (:issue:`2262`). By
      Stephane Raynaud.
  * Bug fixes
    + Fixed a bug in zarr backend which prevented use with datasets
      with incomplete chunks in multiple dimensions
      (:issue:`2225`). By Joe Hamman.
    + Fixed a bug in :py:meth:`~Dataset.to_netcdf` which prevented
      writing datasets when the arrays had different chunk sizes
      (:issue:`2254`). By Mike Neish.
    + Fixed masking during the conversion to cdms2 objects by
      :py:meth:`~xarray.DataArray.to_cdms2` (:issue:`2262`). By

OBS-URL: https://build.opensuse.org/request/show/624539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=4
2018-07-23 16:01:10 +00:00
8f687b6fe6 Accepting request 617154 from devel:languages:python
- update to version 0.10.7:
 * Enhancements:
  * Plot labels now make use of metadata that follow CF conventions (:issue:`2135`). By Deepak Cherian and Ryan Abernathey.
  * Line plots now support facetting with row and col arguments (:issue:`2107`). By Yohai Bar Sinai.
  * :py:meth:`~xarray.DataArray.interp` and :py:meth:`~xarray.Dataset.interp` methods are newly added. See :ref:`interpolating values with interp` for the detail. (:issue:`2079`) By Keisuke Fujii.
 * Bug fixes:
  * Fixed a bug in rasterio backend which prevented use with distributed. The rasterio backend now returns pickleable objects (:issue:`2021`).
- update to version 0.10.6:
 * Enhancements:
  * New PseudoNetCDF backend for many Atmospheric data formats including GEOS-Chem, CAMx, NOAA arlpacked bit and many others. See :ref:`io.PseudoNetCDF` for more details. By Barron Henderson.
  * The :py:class:`Dataset` constructor now aligns :py:class:`DataArray` arguments in data_vars to indexes set explicitly in coords, where previously an error would be raised. (:issue:`674`) By Maximilian Roos.
  * :py:meth:`~DataArray.sel`, :py:meth:`~DataArray.isel` & :py:meth:`~DataArray.reindex`, (and their :py:class:`Dataset` counterparts) now support supplying a dict as a first argument, as an alternative to the existing approach of supplying kwargs. This allows for more robust behavior of dimension names which conflict with other keyword names, or are not strings. By Maximilian Roos.
  * :py:meth:`~DataArray.rename` now supports supplying **kwargs, as an alternative to the existing approach of supplying a dict as the first argument. By Maximilian Roos.
  * :py:meth:`~DataArray.cumsum` and :py:meth:`~DataArray.cumprod` now support aggregation over multiple dimensions at the same time. This is the default behavior when dimensions are not specified (previously this raised an error). By Stephan Hoyer
  * :py:meth:`DataArray.dot` and :py:func:`dot` are partly supported with older dask<0.17.4. (related to :issue:`2203`) By Keisuke Fujii.
  * Xarray now uses Versioneer to manage its version strings. (:issue:`1300`). By Joe Hamman.
 * Bug fixes:
  * Fixed a regression in 0.10.4, where explicitly specifying dtype='S1' or dtype=str in encoding with to_netcdf() raised an error (:issue:`2149`). Stephan Hoyer
  * :py:func:`apply_ufunc` now directly validates output variables (:issue:`1931`). By Stephan Hoyer.
  * Fixed a bug where to_netcdf(..., unlimited_dims='bar') yielded NetCDF files with spurious 0-length dimensions (i.e. b, a, and r) (:issue:`2134`). By Joe Hamman.
  * Removed spurious warnings with Dataset.update(Dataset) (:issue:`2161`) and array.equals(array) when array contains NaT (:issue:`2162`). By Stephan Hoyer.
  * Aggregations with :py:meth:`Dataset.reduce` (including mean, sum, etc) no longer drop unrelated coordinates (:issue:`1470`). Also fixed a bug where non-scalar data-variables that did not include the aggregation dimension were improperly skipped. By Stephan Hoyer
  * Fix :meth:`~DataArray.stack` with non-unique coordinates on pandas 0.23 (:issue:`2160`). By Stephan Hoyer
  * Selecting data indexed by a length-1 CFTimeIndex with a slice of strings now behaves as it does when using a length-1 DatetimeIndex (i.e. it no longer falsely returns an empty array when the slice includes the value in the index) (:issue:`2165`). By Spencer Clark.
  * Fix DataArray.groupby().reduce() mutating coordinates on the input array when grouping over dimension coordinates with duplicated entries (:issue:`2153`). By Stephan Hoyer
  * Fix Dataset.to_netcdf() cannot create group with engine="h5netcdf" (:issue:`2177`). By Stephan Hoyer
- update to version 0.10.4:
  * Documentation
    + New FAQ entry, What other projects leverage xarray?. By Deepak
      Cherian.
    + Assigning values with indexing now includes examples on how to
      select and assign values to a DataArray with .loc. By Chiara
      Lepore.
  * Enhancements
    + Add an option for using a CFTimeIndex for indexing times with
      non-standard calendars and/or outside the Timestamp-valid range;
      this index enables a subset of the functionality of a standard
      pandas.DatetimeIndex. See Non-standard calendars and dates
      outside the Timestamp-valid range for full details. (GH789,
      GH1084, GH1252) By Spencer Clark with help from Stephan Hoyer.
    + Allow for serialization of cftime.datetime objects (GH789,
      GH1084, GH2008, GH1252) using the standalone cftime library. By
      Spencer Clark.
    + Support writing lists of strings as netCDF attributes
      (GH2044). By Dan Nowacki.
    + to_netcdf() with engine='h5netcdf' now accepts h5py encoding
      settings compression and compression_opts, along with the
      NetCDF4-Python style settings gzip=True and complevel. This
      allows using any compression plugin installed in hdf5, e.g. LZF
      (GH1536). By Guido Imperiale.
    + dot() on dask-backed data will now call
      dask.array.einsum(). This greatly boosts speed and allows
      chunking on the core dims. The function now requires dask >=
      0.17.3 to work on dask-backed data (GH2074). By Guido Imperiale.
    + plot.line() learned new kwargs: xincrease, yincrease that change
      the direction of the respective axes. By Deepak Cherian.
    + Added the parallel option to open_mfdataset(). This option uses
      dask.delayed to parallelize the open and preprocessing steps
      within open_mfdataset. This is expected to provide performance
      improvements when opening many files, particularly when used in
      conjunction with dask’s multiprocessing or distributed
      schedulers (GH1981). By Joe Hamman.
    + New compute option in to_netcdf(), to_zarr(), and
      save_mfdataset() to allow for the lazy computation of netCDF and
      zarr stores. This feature is currently only supported by the
      netCDF4 and zarr backends. (GH1784). By Joe Hamman.
  * Bug fixes
    + ValueError is raised when coordinates with the wrong size are
      assigned to a DataArray. (GH2112) By Keisuke Fujii.
    + Fixed a bug in rolling() with bottleneck. Also, fixed a bug in
      rolling an integer dask array. (GH2113) By Keisuke Fujii.
    + Fixed a bug where keep_attrs=True flag was neglected if
      apply_ufunc() was used with Variable. (GH2114) By Keisuke Fujii.
    + When assigning a DataArray to Dataset, any conflicted
      non-dimensional coordinates of the DataArray are now
      dropped. (GH2068) By Keisuke Fujii.
    + Better error handling in open_mfdataset (GH2077). By Stephan
      Hoyer.
    + plot.line() does not call autofmt_xdate() anymore. Instead it
      changes the rotation and horizontal alignment of labels without
      removing the x-axes of any other subplots in the figure (if
      any). By Deepak Cherian.
    + Colorbar limits are now determined by excluding ±Infs too. By
      Deepak Cherian.
    + Fixed to_iris to maintain lazy dask array after conversion
      (GH2046). By Alex Hilson and Stephan Hoyer.
- changes from version 0.10.3:
  * Enhancements
    + isin() and isin() methods, which test each value in the array
      for whether it is contained in the supplied list, returning a
      bool array. See Selecting values with isin for full
      details. Similar to the np.isin function. By Maximilian Roos.
    + Some speed improvement to construct DataArrayRolling object
      (GH1993) By Keisuke Fujii.
    + Handle variables with different values for missing_value and
      _FillValue by masking values for both attributes; previously
      this resulted in a ValueError. (GH2016) By Ryan May.
  * Bug fixes
    + Fixed decode_cf function to operate lazily on dask arrays
      (GH1372). By Ryan Abernathey.
    + Fixed labeled indexing with slice bounds given by xarray objects
      with datetime64 or timedelta64 dtypes (GH1240). By Stephan
      Hoyer.
    + Attempting to convert an xarray.Dataset into a numpy array now
      raises an informative error message. By Stephan Hoyer.
    + Fixed a bug in decode_cf_datetime where int32 arrays weren’t
      parsed correctly (GH2002). By Fabien Maussion.
    + When calling xr.auto_combine() or xr.open_mfdataset() with a
      concat_dim, the resulting dataset will have that one-element
      dimension (it was silently dropped, previously) (GH1988). By Ben
      Root.
- temporarily deactivated tests because of minor issues with netCDF library
  see https://github.com/pydata/xarray/issues/2050
- update to version 0.10.3:
 * Enhancements
  - :py:meth:`~xarray.DataArray.isin` and :py:meth:`~xarray.Dataset.isin` methods,
    which test each value in the array for whether it is contained in the
    supplied list, returning a bool array. See :ref:`selecting values with isin`
    for full details. Similar to the ``np.isin`` function.
    By `Maximilian Roos <https://github.com/maxim-lian>`_.
  - Some speed improvement to construct :py:class:`~xarray.DataArrayRolling`
    object (:issue:`1993`)
    By `Keisuke Fujii <https://github.com/fujiisoup>`_.
  - Handle variables with different values for ``missing_value`` and
    ``_FillValue`` by masking values for both attributes; previously this
    resulted in a ``ValueError``. (:issue:`2016`)
    By `Ryan May <https://github.com/dopplershift>`_.
 * Bug fixes
  - Fixed ``decode_cf`` function to operate lazily on dask arrays
    (:issue:`1372`). By `Ryan Abernathey <https://github.com/rabernat>`_.
  - Fixed labeled indexing with slice bounds given by xarray objects with
    datetime64 or timedelta64 dtypes (:issue:`1240`).
    By `Stephan Hoyer <https://github.com/shoyer>`_.
  - Attempting to convert an xarray.Dataset into a numpy array now raises an
    informative error message.
    By `Stephan Hoyer <https://github.com/shoyer>`_.
  - Fixed a bug in decode_cf_datetime where ``int32`` arrays weren't parsed
    correctly (:issue:`2002`).
    By `Fabien Maussion <https://github.com/fmaussion>`_.
  - When calling `xr.auto_combine()` or `xr.open_mfdataset()` with a `concat_dim`,
    the resulting dataset will have that one-element dimension (it was
    silently dropped, previously) (:issue:`1988`).
    By `Ben Root <https://github.com/WeatherGod>`_.
- update to version 0.10.2:
  * Backwards incompatible changes
    + The addition of __array_ufunc__ for xarray objects (see below)
      means that NumPy ufunc methods (e.g., np.add.reduce) that
      previously worked on xarray.DataArray objects by converting them
      into NumPy arrays will now raise NotImplementedError instead. In
      all cases, the work-around is simple: convert your objects
      explicitly into NumPy arrays before calling the ufunc (e.g.,
      with .values).
  * Enhancements
    + Added dot(), equivalent to np.einsum(). Also, dot() now supports
      dims option, which specifies the dimensions to sum
      over. (GH1951) By Keisuke Fujii.
    + Support for writing xarray datasets to netCDF files (netcdf4
      backend only) when using the dask.distributed scheduler
      (GH1464). By Joe Hamman.
    + Support lazy vectorized-indexing. After this change, flexible
      indexing such as orthogonal/vectorized indexing, becomes
      possible for all the backend arrays. Also, lazy transpose is now
      also supported. (GH1897) By Keisuke Fujii.
    + Implemented NumPy’s __array_ufunc__ protocol for all xarray
      objects (GH1617). This enables using NumPy ufuncs directly on
      xarray.Dataset objects with recent versions of NumPy (v1.13 and
      newer):
         In [1]: ds = xr.Dataset({'a': 1})
         In [2]: np.sin(ds)
         Out[2]:
         <xarray.Dataset>
         Dimensions:  ()
         Data variables:
             a        float64 0.8415
      This obliviates the need for the xarray.ufuncs module, which
      will be deprecated in the future when xarray drops support for
      older versions of NumPy. By Stephan Hoyer.
    + Improve rolling() logic. DataArrayRolling() object now supports
      construct() method that returns a view of the DataArray /
      Dataset object with the rolling-window dimension added to the
      last axis. This enables more flexible operation, such as strided
      rolling, windowed rolling, ND-rolling, short-time FFT and
      convolution. (GH1831, GH1142, GH819) By Keisuke Fujii.
    + line() learned to make plots with data on x-axis if so
      specified. (GH575) By Deepak Cherian.
  * Bug fixes
    + Raise an informative error message when using apply_ufunc with
      numpy v1.11 (GH1956). By Stephan Hoyer.
    + Fix the precision drop after indexing datetime64 arrays
      (GH1932). By Keisuke Fujii.
    + Silenced irrelevant warnings issued by open_rasterio
      (GH1964). By Stephan Hoyer.
    + Fix kwarg colors clashing with auto-inferred cmap (GH1461) By
      Deepak Cherian.
    + Fix imshow() error when passed an RGB array with size one in a
      spatial dimension. By Zac Hatfield-Dodds.
- Replace future goals and aims by present capabilities.
- update to version 0.10.1:
 * please see upstream changelog at: https://github.com/pydata/xarray/blob/v0.10.1/doc/whats-new.rst
- remove check boundary condition
- run spec-cleaner
- use %license for license
- Implement single-spec version
- Update to 0.9.6
  * Please see changelog at:
    https://github.com/pydata/xarray/blob/v0.9.6/doc/whats-new.rst
- Rename package to python3-xray to match upstream naming.
- update to version 0.7.0:
  * The project formerly known as "xray" is now "xarray", pronounced "x-array"!
    This avoids a namespace conflict with the entire field of x-ray science. Renaming
    our project seemed like the right thing to do, especially because some
    scientists who work with actual x-rays are interested in using this project in
    their work. Thanks for your understanding and patience in this transition. 
  * Breaking changes
    - The internal data model used by :py:class:`~xray.DataArray` has been
      rewritten to fix several outstanding issues. Internally, ``DataArray``
      is now implemented in terms of ``._variable`` and ``._coords`` 
      attributes instead of holding variables in a ``Dataset`` object.
    - It is no longer possible to convert a DataArray to a Dataset with
      :py:meth:`xray.DataArray.to_dataset` if it is unnamed. This will now
      raise ``ValueError``. If the array is unnamed, you need to supply the
      ``name`` argument.
  * Enhancements
    - Basic support for :py:class:`~pandas.MultiIndex` coordinates on xray objects, including
      indexing, :py:meth:`~DataArray.stack` and :py:meth:`~DataArray.unstack`:
    - Support for reading GRIB, HDF4 and other file formats via PyNIO_. See
      :ref:`io.pynio` for more details.
    - Better error message when a variable is supplied with the same name as
      one of its dimensions.
    - Plotting: more control on colormap parameters (:issue:`642`). ``vmin`` and
      ``vmax`` will not be silently ignored anymore. Setting ``center=False``
      prevents automatic selection of a divergent colormap.
    - New :py:meth:`~xray.Dataset.shift` and :py:meth:`~xray.Dataset.roll` methods
      for shifting/rotating datasets or arrays along a dimension
    - Assigning a ``pandas`` object directly as a ``Dataset`` variable is now permitted. Its
      index names correspond to the ``dims`` of the ``Dataset``, and its data is aligned.
    - Passing a :py:class:`pandas.DataFrame` or :py:class:`pandas.Panel` to a Dataset constructor
      is now permitted.
    - New function :py:func:`~xray.broadcast` for explicitly broadcasting
      ``DataArray`` and ``Dataset`` objects against each other. 
  * Bug fixes
    - Fixes for several issues found on ``DataArray`` objects with the same name
      as one of their coordinates (see :ref:`v0.7.0.breaking` for more details).
    - ``DataArray.to_masked_array`` always returns masked array with mask being an
      array (not a scalar value) (:issue:`684`)
    - Allows for (imperfect) repr of Coords when underlying index is PeriodIndex (:issue:`645`).
    - Fixes for several issues found on ``DataArray`` objects with the same name
      as one of their coordinates (see :ref:`v0.7.0.breaking` for more details).
    - Attempting to assign a ``Dataset`` or ``DataArray`` variable/attribute using
      attribute-style syntax (e.g., ``ds.foo = 42``) now raises an error rather
      than silently failing (:issue:`656`, :issue:`714`).
    - You can now pass pandas objects with non-numpy dtypes (e.g., ``categorical``
      or ``datetime64`` with a timezone) into xray without an error
      (:issue:`716`).
- update to version 0.6.1:
  * The handling of colormaps and discrete color lists for 2D plots in
    :py:meth:`~xray.DataArray.plot` was changed to provide more
    compatibility with matplotlib's contour and contourf functions
    (:issue:`538`). Now discrete lists of colors should be specified
    using colors keyword, rather than cmap.
  * Faceted plotting through :py:class:`~xray.plot.FacetGrid` and the
    :py:meth:`~xray.plot.plot` method. See :ref:`plotting.faceting`
    for more details and examples.
  * :py:meth:`~xray.Dataset.sel` and :py:meth:`~xray.Dataset.reindex`
    now support the tolerance argument for controlling
    nearest-neighbor selection (:issue:`629`):
    This feature requires pandas v0.17 or newer.
  * New encoding argument in :py:meth:`~xray.Dataset.to_netcdf` for
    writing netCDF files with compression, as described in the new
    documentation section on :ref:`io.netcdf.writing_encoded`.
  * Add :py:attr:`~xray.Dataset.real` and
    :py:attr:`~xray.Dataset.imag` attributes to Dataset and DataArray
    (:issue:`553`).
  * More informative error message with
    :py:meth:`~xray.Dataset.from_dataframe` if the frame has duplicate
    columns.
  * xray now uses deterministic names for dask arrays it creates or
    opens from disk. This allows xray users to take advantage of
    dask's nascent support for caching intermediate computation
    results. See :issue:`555` for an example.
  * Forwards compatibility with the latest pandas release
    (v0.17.0). We were using some internal pandas routines for
    datetime conversion, which unfortunately have now changed upstream
    (:issue:`569`).
  * Aggregation functions now correctly skip NaN for data for
    complex128 dtype (:issue:`554`).
  * Fixed indexing 0d arrays with unicode dtype (:issue:`568`).
  * :py:meth:`~xray.DataArray.name` and Dataset keys must be a string
    or None to be written to netCDF (:issue:`533`).
  * :py:meth:`~xray.DataArray.where` now uses dask instead of numpy if
    either the array or other is a dask array. Previously, if other
    was a numpy array the method was evaluated eagerly.
  * Global attributes are now handled more consistently when loading
    remote datasets using engine='pydap' (:issue:`574`).
  * It is now possible to assign to the .data attribute of DataArray
    objects.
  * coordinates attribute is now kept in the encoding dictionary after
    decoding (:issue:`610`).
  * Compatibility with numpy 1.10 (:issue:`617
- update to version 0.6.0:
  * Plotting methods have been implemented on DataArray objects
    :py:meth:`~xray.DataArray.plot` through integration with matplotlib
    (:issue:`185`). For an introduction, see :ref:`plotting`.
  * Variables in netCDF files with multiple missing values are now decoded as
    NaN after issuing a warning if open_dataset is called with
    mask_and_scale=True.
  * We clarified our rules for when the result from an xray operation is a copy
    vs. a view (see :ref:`copies vs views` for more details).
  * Dataset variables are now written to netCDF files in order of appearance
    when using the netcdf4 backend (:issue:`479`).
  * Added :py:meth:`~xray.Dataset.isel_points` and
    :py:meth:`~xray.Dataset.sel_points` to support pointwise indexing of
    Datasets and DataArrays (:issue:`475`).
  * New :py:meth:`~xray.Dataset.where` method for masking xray objects
    according to some criteria. This works particularly well with
    multi-dimensional data:
  * Added new methods :py:meth:`DataArray.diff <xray.DataArray.diff>` and
    :py:meth:`Dataset.diff <xray.Dataset.diff>` for finite difference
    calculations along a given axis.
  * New :py:meth:`~xray.DataArray.to_masked_array` convenience method for
    returning a numpy.ma.MaskedArray.
  * Added new flag "drop_variables" to :py:meth:`~xray.open_dataset` for
    excluding variables from being parsed. This may be useful to drop variables
    with problems or inconsistent values.
  * Fixed aggregation functions (e.g., sum and mean) on big-endian arrays when
    bottleneck is installed (:issue:`489`).
  * Dataset aggregation functions dropped variables with unsigned integer dtype
    (:issue:`505`).
  * .any() and .all() were not lazy when used on xray objects containing dask
    arrays.
  * Fixed an error when attempting to saving datetime64 variables to netCDF
    files when the first element is NaT (:issue:`528`).
  * Fix pickle on DataArray objects (:issue:`515`).
  * Fixed unnecessary coercion of float64 to float32 when using netcdf3 and
    netcdf4_classic formats (:issue:`526`).
- Initial version

OBS-URL: https://build.opensuse.org/request/show/617154
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=3
2018-06-29 20:27:12 +00:00
5cee71a8ba Accepting request 610879 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/610879
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=2
2018-05-29 08:34:57 +00:00
225c0cbf1d Accepting request 596516 from devel:languages:python
for openSUSE:Factory:Staging:adi:14 fixing build there

OBS-URL: https://build.opensuse.org/request/show/596516
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=1
2018-04-24 13:31:25 +00:00
11 changed files with 283 additions and 1170 deletions

View File

@ -1,20 +1,17 @@
---
xarray/tutorial.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Index: xarray-2024.05.0/xarray/tutorial.py
===================================================================
--- xarray-2024.05.0.orig/xarray/tutorial.py
+++ xarray-2024.05.0/xarray/tutorial.py
@@ -158,7 +158,10 @@ def open_dataset(
url = f"{base_url}/raw/{version}/{path.name}"
--- xarray-2024.11.0/xarray/tutorial.py 2024-11-22 21:58:55.000000000 +0100
+++ xarray-2024.11.0/xarray/tutorial.py.new 2024-11-24 14:18:51.684909924 +0100
@@ -162,9 +162,11 @@
downloader = pooch.HTTPDownloader(headers=headers)
# retrieve the file
- filepath = pooch.retrieve(url=url, known_hash=None, path=cache_dir)
- filepath = pooch.retrieve(
- url=url, known_hash=None, path=cache_dir, downloader=downloader
- )
+ fname = pathlib.Path(cache_dir, path).expanduser()
+ if not fname.exists():
+ fname = None
+ filepath = pooch.retrieve(url=url, fname=fname, known_hash=None, path=cache_dir)
+
ds = _open_dataset(filepath, engine=engine, **kws)
if not cache:
ds = ds.load()

View File

@ -1,3 +1,224 @@
-------------------------------------------------------------------
Fri Dec 6 12:27:55 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Skip another type induced test error on 32-bit
-------------------------------------------------------------------
Sun Nov 24 13:23:43 UTC 2024 - Sebastian Wagner <sebix@sebix.at>
- skip test test_asi8 on 32bit, results in "OverflowError: Python int too large to convert to C long"
- delete obsolete patches xarray-pr9356-dasktests.patch, xarray-pr9321-dasktests.patch and xarray-pr9403-np2.1-scalar.patch
- update to version .2024.11.0:
- This release brings better support for wrapping JAX arrays and Astropy Quantity objects, :py:meth:`DataTree.persist`, algorithmic improvements:
- to many methods with dask (:py:meth:`Dataset.polyfit`, :py:meth:`Dataset.ffill`, :py:meth:`Dataset.bfill`, rolling reductions), and bug fixes.:
- Thanks to the 22 contributors to this release:
- Benoit Bovy, Deepak Cherian, Dimitri Papadopoulos Orfanos, Holly Mandel, James Bourbeau, Joe Hamman, Justus Magin, Kai Mühlbauer, Lukas Trippe, Mathias Hauser, Maximilian Roos, Michael Niklas, Pascal Bourgault, Patrick Hoefler, Sam Levang, Sarah Charlotte Johnson, Scott Huberty, Stephan Hoyer, Tom Nicholas, Virgile Andreani, joseph nowak and tvo:
- New Features:
- Added :py:meth:`DataTree.persist` method (:issue:`9675`, :pull:`9682`).
By `Sam Levang <https://github.com/slevang>`_.
- Added ``write_inherited_coords`` option to :py:meth:`DataTree.to_netcdf`
and :py:meth:`DataTree.to_zarr` (:pull:`9677`).
By `Stephan Hoyer <https://github.com/shoyer>`_.
- Support lazy grouping by dask arrays, and allow specifying ordered groups with ``UniqueGrouper(labels=["a", "b", "c"])``
(:issue:`2852`, :issue:`757`).
By `Deepak Cherian <https://github.com/dcherian>`_.
- Add new ``automatic_rechunk`` kwarg to :py:meth:`DataArrayRolling.construct` and
:py:meth:`DatasetRolling.construct`. This is only useful on ``dask>=2024.11.0``
(:issue:`9550`). By `Deepak Cherian <https://github.com/dcherian>`_.
- Optimize ffill, bfill with dask when limit is specified
(:pull:`9771`).
By `Joseph Nowak <https://github.com/josephnowak>`_, and
`Patrick Hoefler <https://github.com/phofl>`_.
- Allow wrapping ``np.ndarray`` subclasses, e.g. ``astropy.units.Quantity`` (:issue:`9704`, :pull:`9760`).
By `Sam Levang <https://github.com/slevang>`_ and `Tien Vo <https://github.com/tien-vo>`_.
- Optimize :py:meth:`DataArray.polyfit` and :py:meth:`Dataset.polyfit` with dask, when used with
arrays with more than two dimensions.
(:issue:`5629`). By `Deepak Cherian <https://github.com/dcherian>`_.
- Support for directly opening remote files as string paths (for example, ``s3://bucket/data.nc``)
with ``fsspec`` when using the ``h5netcdf`` engine (:issue:`9723`, :pull:`9797`).
By `James Bourbeau <https://github.com/jrbourbeau>`_.
- Re-implement the :py:mod:`ufuncs` module, which now dynamically dispatches to the
underlying array's backend. Provides better support for certain wrapped array types
like ``jax.numpy.ndarray``. (:issue:`7848`, :pull:`9776`).
By `Sam Levang <https://github.com/slevang>`_.
- Speed up loading of large zarr stores using dask arrays. (:issue:`8902`)
By `Deepak Cherian <https://github.com/dcherian>`_.
- Breaking Changes:
- The minimum versions of some dependencies were changed
===================== ========= =======
Package Old New
===================== ========= =======
boto3 1.28 1.29
dask-core 2023.9 2023.11
distributed 2023.9 2023.11
h5netcdf 1.2 1.3
numbagg 0.2.1 0.6
typing_extensions 4.7 4.8
===================== ========= =======
- Deprecations:
- Grouping by a chunked array (e.g. dask or cubed) currently eagerly loads that variable in to
memory. This behaviour is deprecated. If eager loading was intended, please load such arrays
manually using ``.load()`` or ``.compute()``. Else pass ``eagerly_compute_group=False``, and
provide expected group labels using the ``labels`` kwarg to a grouper object such as
:py:class:`grouper.UniqueGrouper` or :py:class:`grouper.BinGrouper`.
- Bug fixes:
- Fix inadvertent deep-copying of child data in DataTree (:issue:`9683`,
:pull:`9684`).
By `Stephan Hoyer <https://github.com/shoyer>`_.
- Avoid including parent groups when writing DataTree subgroups to Zarr or
netCDF (:pull:`9682`).
By `Stephan Hoyer <https://github.com/shoyer>`_.
- Fix regression in the interoperability of :py:meth:`DataArray.polyfit` and :py:meth:`xr.polyval` for date-time coordinates. (:pull:`9691`).
By `Pascal Bourgault <https://github.com/aulemahal>`_.
- Fix CF decoding of ``grid_mapping`` to allow all possible formats, add tests (:issue:`9761`, :pull:`9765`).
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
- Add ``User-Agent`` to request-headers when retrieving tutorial data (:issue:`9774`, :pull:`9782`)
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
- Documentation:
- Mention attribute peculiarities in docs/docstrings (:issue:`4798`, :pull:`9700`).
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
- Internal Changes:
- ``persist`` methods now route through the :py:class:`xr.core.parallelcompat.ChunkManagerEntrypoint` (:pull:`9682`).
By `Sam Levang <https://github.com/slevang>`_.
- update to version 2024.10.0:
- This release brings official support for ``xarray.DataTree``, and compatibility with zarr-python v3!:
- Aside from these two huge features, it also improves support for vectorised interpolation and fixes various bugs.:
- Thanks to the 31 contributors to this release:
- Alfonso Ladino, DWesl, Deepak Cherian, Eni, Etienne Schalk, Holly Mandel, Ilan Gold, Illviljan, Joe Hamman, Justus Magin, Kai Mühlbauer, Karl Krauth, Mark Harfouche, Martey Dodoo, Matt Savoie, Maximilian Roos, Patrick Hoefler, Peter Hill, Renat Sibgatulin, Ryan Abernathey, Spencer Clark, Stephan Hoyer, Tom Augspurger, Tom Nicholas, Vecko, Virgile Andreani, Yvonne Fröhlich, carschandler, joseph nowak, mgunyho and owenlittlejohns:
- New Features:
- ``DataTree`` related functionality is now exposed in the main ``xarray`` public
API. This includes: ``xarray.DataTree``, ``xarray.open_datatree``, ``xarray.open_groups``,
``xarray.map_over_datasets``, ``xarray.group_subtrees``,
``xarray.register_datatree_accessor`` and ``xarray.testing.assert_isomorphic``.
By `Owen Littlejohns <https://github.com/owenlittlejohns>`_,
`Eni Awowale <https://github.com/eni-awowale>`_,
`Matt Savoie <https://github.com/flamingbear>`_,
`Stephan Hoyer <https://github.com/shoyer>`_,
`Tom Nicholas <https://github.com/TomNicholas>`_,
`Justus Magin <https://github.com/keewis>`_, and
`Alfonso Ladino <https://github.com/aladinor>`_.
- A migration guide for users of the prototype `xarray-contrib/datatree repository <https://github.com/xarray-contrib/datatree>`_ has been added, and can be found in the ``DATATREE_MIGRATION_GUIDE.md`` file in the repository root.
By `Tom Nicholas <https://github.com/TomNicholas>`_.
- Support for Zarr-Python 3 (:issue:`95515`, :pull:`9552`).
By `Tom Augspurger <https://github.com/TomAugspurger>`_,
`Ryan Abernathey <https://github.com/rabernat>`_ and
`Joe Hamman <https://github.com/jhamman>`_.
- Added zarr backends for :py:func:`open_groups` (:issue:`9430`, :pull:`9469`).
By `Eni Awowale <https://github.com/eni-awowale>`_.
- Added support for vectorized interpolation using additional interpolators
from the ``scipy.interpolate`` module (:issue:`9049`, :pull:`9526`).
By `Holly Mandel <https://github.com/hollymandel>`_.
- Implement handling of complex numbers (netcdf4/h5netcdf) and enums (h5netcdf) (:issue:`9246`, :issue:`3297`, :pull:`9509`).
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
- Fix passing missing arguments to when opening hdf5 and netCDF4 datatrees
(:issue:`9427`, :pull:`9428`).
By `Alfonso Ladino <https://github.com/aladinor>`_.
- Bug fixes:
- Make illegal path-like variable names when constructing a DataTree from a Dataset
(:issue:`9339`, :pull:`9378`)
By `Etienne Schalk <https://github.com/etienneschalk>`_.
- Work around `upstream pandas issue
<https://github.com/pandas-dev/pandas/issues/56996>`_ to ensure that we can
decode times encoded with small integer dtype values (e.g. ``np.int32``) in
environments with NumPy 2.0 or greater without needing to fall back to cftime
(:pull:`9518`). By `Spencer Clark <https://github.com/spencerkclark>`_.
- Fix bug when encoding times with missing values as floats in the case when
the non-missing times could in theory be encoded with integers
(:issue:`9488`, :pull:`9497`). By `Spencer Clark
<https://github.com/spencerkclark>`_.
- Fix a few bugs affecting groupby reductions with ``flox``. (:issue:`8090`, :issue:`9398`, :issue:`9648`).
- Fix a few bugs affecting groupby reductions with ``flox``. (:issue:`8090`, :issue:`9398`).
By `Deepak Cherian <https://github.com/dcherian>`_.
- Fix the safe_chunks validation option on the to_zarr method
(:issue:`5511`, :pull:`9559`). By `Joseph Nowak
<https://github.com/josephnowak>`_.
- Fix binning by multiple variables where some bins have no observations. (:issue:`9630`).
By `Deepak Cherian <https://github.com/dcherian>`_.
- Fix issue where polyfit wouldn't handle non-dimension coordinates. (:issue:`4375`, :pull:`9369`)
By `Karl Krauth <https://github.com/Karl-Krauth>`_.
- Documentation:
- Migrate documentation for ``datatree`` into main ``xarray`` documentation (:pull:`9033`).
For information on previous ``datatree`` releases, please see:
`datatree's historical release notes <https://xarray-datatree.readthedocs.io/en/latest/>`_.
By `Owen Littlejohns <https://github.com/owenlittlejohns>`_, `Matt Savoie <https://github.com/flamingbear>`_, and
`Tom Nicholas <https://github.com/TomNicholas>`_.
- Internal Changes:
- update to version 2024.09.0:
- This release drops support for Python 3.9, and adds support for grouping by :ref:`multiple arrays <groupby.multiple>`, while providing numerous performance improvements and bug fixes.:
- Thanks to the 33 contributors to this release:
- Alfonso Ladino, Andrew Scherer, Anurag Nayak, David Hoese, Deepak Cherian, Diogo Teles Sant'Anna, Dom, Elliott Sales de Andrade, Eni, Holly Mandel, Illviljan, Jack Kelly, Julius Busecke, Justus Magin, Kai Mühlbauer, Manish Kumar Gupta, Matt Savoie, Maximilian Roos, Michele Claus, Miguel Jimenez, Niclas Rieger, Pascal Bourgault, Philip Chmielowiec, Spencer Clark, Stephan Hoyer, Tao Xin, Tiago Sanona, TimothyCera-NOAA, Tom Nicholas, Tom White, Virgile Andreani, oliverhiggs and tiago:
- New Features:
- Add :py:attr:`~core.accessor_dt.DatetimeAccessor.days_in_year` and
:py:attr:`~core.accessor_dt.DatetimeAccessor.decimal_year` to the
``DatetimeAccessor`` on ``xr.DataArray``. (:pull:`9105`).
By `Pascal Bourgault <https://github.com/aulemahal>`_.
- Performance:
- Make chunk manager an option in ``set_options`` (:pull:`9362`).
By `Tom White <https://github.com/tomwhite>`_.
- Support for :ref:`grouping by multiple variables <groupby.multiple>`.
This is quite new, so please check your results and report bugs.
Binary operations after grouping by multiple arrays are not supported yet.
(:issue:`1056`, :issue:`9332`, :issue:`324`, :pull:`9372`).
By `Deepak Cherian <https://github.com/dcherian>`_.
- Allow data variable specific ``constant_values`` in the dataset ``pad`` function (:pull:`9353`).
By `Tiago Sanona <https://github.com/tsanona>`_.
- Speed up grouping by avoiding deep-copy of non-dimension coordinates (:issue:`9426`, :pull:`9393`)
By `Deepak Cherian <https://github.com/dcherian>`_.
- Breaking changes:
- Support for ``python 3.9`` has been dropped (:pull:`8937`)
- The minimum versions of some dependencies were changed
===================== ========= =======
Package Old New
===================== ========= =======
boto3 1.26 1.28
cartopy 0.21 0.22
dask-core 2023.4 2023.9
distributed 2023.4 2023.9
h5netcdf 1.1 1.2
iris 3.4 3.7
numba 0.56 0.57
numpy 1.23 1.24
pandas 2.0 2.1
scipy 1.10 1.11
typing_extensions 4.5 4.7
zarr 2.14 2.16
===================== ========= =======
- Bug fixes:
- Fix bug with rechunking to a frequency when some periods contain no data (:issue:`9360`).
By `Deepak Cherian <https://github.com/dcherian>`_.
- Fix bug causing ``DataTree.from_dict`` to be sensitive to insertion order (:issue:`9276`, :pull:`9292`).
By `Tom Nicholas <https://github.com/TomNicholas>`_.
- Fix resampling error with monthly, quarterly, or yearly frequencies with
cftime when the time bins straddle the date "0001-01-01". For example, this
can happen in certain circumstances when the time coordinate contains the
date "0001-01-01". (:issue:`9108`, :pull:`9116`) By `Spencer Clark
<https://github.com/spencerkclark>`_ and `Deepak Cherian
<https://github.com/dcherian>`_.
- Fix issue with passing parameters to ZarrStore.open_store when opening
datatree in zarr format (:issue:`9376`, :pull:`9377`).
By `Alfonso Ladino <https://github.com/aladinor>`_
- Fix deprecation warning that was raised when calling ``np.array`` on an ``xr.DataArray``
in NumPy 2.0 (:issue:`9312`, :pull:`9393`)
By `Andrew Scherer <https://github.com/andrew-s28>`_.
- Fix passing missing arguments to when opening hdf5 and netCDF4 datatrees
(:issue:`9427`, :pull:`9428`).
By `Alfonso Ladino <https://github.com/aladinor>`_.
- Fix support for using ``pandas.DateOffset``, ``pandas.Timedelta``, and
``datetime.timedelta`` objects as ``resample`` frequencies
(:issue:`9408`, :pull:`9413`).
By `Oliver Higgs <https://github.com/oliverhiggs>`_.
- Internal Changes:
- Re-enable testing ``pydap`` backend with ``numpy>=2`` (:pull:`9391`).
By `Miguel Jimenez <https://github.com/Mikejmnez>`_ .
-------------------------------------------------------------------
Sun Nov 24 13:08:38 UTC 2024 - Sebastian Wagner <sebix@sebix.at>
- disable the 'parallel' subpackage because dask is unavailable 3.12, which is because numba is unavailable on 3.13
https://build.opensuse.org/request/show/1225144
https://github.com/numba/numba/issues/9760
- disabled tests requiring dask
-------------------------------------------------------------------
Wed Sep 4 09:11:37 UTC 2024 - Ben Greiner <code@bnavigator.de>
@ -1177,7 +1398,7 @@ Sun Aug 7 03:12:48 UTC 2022 - Arun Persaud <arun@gmx.de>
details. (PR5692). By Benoît Bovy.
-------------------------------------------------------------------
Fri Mar 4 18:00:26 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
Fri Mar 4 18:00:26 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
- - update to version 2022.03.0:
- This release brings a number of small improvements, as well as a move to `calendar versioning <https://calver.org/>`_ (:issue:`6176`).:
@ -1217,7 +1438,7 @@ Fri Mar 4 18:00:26 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
By `Sebastian Weigand <https://github.com/s-weigand>`_ and `Joe Hamman <https://github.com/jhamman>`_.
-------------------------------------------------------------------
Wed Feb 2 19:56:06 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
Wed Feb 2 19:56:06 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
- - update to version 0.21.1:
- This is a bugfix release to resolve (:issue:`6216`, :pull:`6207`).:
@ -1226,7 +1447,7 @@ Wed Feb 2 19:56:06 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
By `Sebastian Weigand <https://github.com/s-weigand>`_ and `Joe Hamman <https://github.com/jhamman>`_.
-------------------------------------------------------------------
Sat Jan 29 09:23:51 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sat Jan 29 09:23:51 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
- update to version 0.21.0:
- Many thanks to the 20 contributors to the v0.21.0 release!:
@ -1283,7 +1504,7 @@ Mon Jan 24 16:28:40 UTC 2022 - Ben Greiner <code@bnavigator.de>
yet
-------------------------------------------------------------------
Fri Dec 10 08:01:01 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Fri Dec 10 08:01:01 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- update to version 0.20.2:
- This is a bugfix release to resolve (:issue:`3391`, :issue:`5715`). It also:
@ -1318,7 +1539,7 @@ Fri Dec 10 08:01:01 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
-------------------------------------------------------------------
Mon Nov 15 14:46:40 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Mon Nov 15 14:46:40 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- update to version 0.20.1:
- This is a bugfix release to fix :issue:`5930`.:
@ -1329,7 +1550,7 @@ Mon Nov 15 14:46:40 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Significant improvements to :ref:`api`. By `Deepak Cherian <https://github.com/dcherian>`_.
-------------------------------------------------------------------
Tue Nov 2 19:44:34 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Tue Nov 2 19:44:34 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- update to version 0.20.0:
- This release brings improved support for pint arrays, methods for weighted standard deviation, variance,:
@ -1459,7 +1680,7 @@ Tue Sep 21 10:38:39 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Tests require dask[diagnostics] extra now (for Jinja2)
-------------------------------------------------------------------
Tue Jul 27 11:01:52 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Tue Jul 27 11:01:52 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- remove xarray-pr5449-dask-meta.patch, merged upstream.
- remove test_resample_loffset.patch, merged upstream.
@ -1578,20 +1799,20 @@ Tue May 25 17:25:46 UTC 2021 - Matej Cepl <mcepl@suse.com>
test (gh#pydata/xarray#5364).
-------------------------------------------------------------------
Thu May 20 11:58:50 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Thu May 20 11:58:50 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- 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
-------------------------------------------------------------------
Wed May 19 13:53:54 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Wed May 19 13:53:54 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- add fix_test_resample_loffset.patch to fix test fail on i586
https://github.com/pydata/xarray/issues/5341
-------------------------------------------------------------------
Wed May 19 07:26:03 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Wed May 19 07:26:03 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- update to version 0.18.1:
- This release is intended as a small patch release to be compatible with the new:
@ -1637,7 +1858,7 @@ Wed May 19 07:26:03 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
By `Tom Nicholas <https://github.com/TomNicholas>`_.
-------------------------------------------------------------------
Sun May 9 09:46:42 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sun May 9 09:46:42 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- update to version 0.18.0:
- This release brings a few important performance improvements, a wide range of:
@ -1842,7 +2063,7 @@ Sun May 9 09:46:42 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
By `Maximilian Roos <https://github.com/max-sixty>`_.
-------------------------------------------------------------------
Sat Feb 27 14:38:41 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sat Feb 27 14:38:41 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- update to version 0.17.0:
- This release brings a few important performance improvements, a wide range of:
@ -2058,7 +2279,7 @@ Mon Feb 15 12:30:53 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Recommend/Suggest the extras
-------------------------------------------------------------------
Sun Dec 20 16:09:14 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sun Dec 20 16:09:14 UTC 2020 - Sebastian Wagner <sebix@sebix.at>
- 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.:
@ -2171,7 +2392,7 @@ Sun Dec 20 16:09:14 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
<https://github.com/mathause>`_.
-------------------------------------------------------------------
Wed Sep 23 06:23:20 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
Wed Sep 23 06:23:20 UTC 2020 - Sebastian Wagner <sebix@sebix.at>
- update to version 0.16.1:
- This patch release fixes an incompatability with a recent pandas change, which:
@ -2412,7 +2633,7 @@ Sat Mar 28 16:43:47 UTC 2020 - Arun Persaud <arun@gmx.de>
tested instead of skipping the tests.
-------------------------------------------------------------------
Sat Feb 1 15:02:10 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sat Feb 1 15:02:10 UTC 2020 - Sebastian Wagner <sebix@sebix.at>
- 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>`_):
@ -2860,7 +3081,7 @@ Mon Jul 29 21:32:02 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Disable non-functional dask tests
-------------------------------------------------------------------
Mon Jul 15 19:31:13 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
Mon Jul 15 19:31:13 UTC 2019 - Sebastian Wagner <sebix@sebix.at>
- update to version 0.12.3:
- New functions/methods:
@ -2885,7 +3106,7 @@ Mon Jul 15 19:31:13 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
once (:issue:`2954`).
-------------------------------------------------------------------
Sun Jun 30 09:29:36 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sun Jun 30 09:29:36 UTC 2019 - Sebastian Wagner <sebix@sebix.at>
- update to version 0.12.2:
- New functions/methods:
@ -3032,7 +3253,7 @@ Tue Apr 23 09:44:22 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Just use %pytest macro
-------------------------------------------------------------------
Sun Apr 7 11:37:34 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sun Apr 7 11:37:34 UTC 2019 - Sebastian Wagner <sebix@sebix.at>
- Update to version 0.12.1:
- Enhancements
@ -3148,7 +3369,7 @@ Wed Feb 13 18:04:03 UTC 2019 - Todd R <toddrme2178@gmail.com>
to ``open_mfdataset``
-------------------------------------------------------------------
Thu Jan 3 17:40:46 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
Thu Jan 3 17:40:46 UTC 2019 - Sebastian Wagner <sebix@sebix.at>
- update to version 0.11.2:
- Removes inadvertently introduced setup dependency on pytest-runner (:issue:`2641`). Otherwise, this release is exactly equivalent to 0.11.1.
@ -3353,7 +3574,7 @@ Wed Jul 18 17:32:13 UTC 2018 - arun@gmx.de
Hamman.
-------------------------------------------------------------------
Sun Jun 10 20:04:48 UTC 2018 - sebix+novell.com@sebix.at
Sun Jun 10 20:04:48 UTC 2018 - sebix@sebix.at
- update to version 0.10.7:
* Enhancements:
@ -3473,7 +3694,7 @@ Mon May 21 04:03:17 UTC 2018 - arun@gmx.de
Root.
-------------------------------------------------------------------
Sat Apr 14 12:41:49 UTC 2018 - sebix+novell.com@sebix.at
Sat Apr 14 12:41:49 UTC 2018 - sebix@sebix.at
- temporarily deactivated tests because of minor issues with netCDF library
see https://github.com/pydata/xarray/issues/2050
@ -3573,7 +3794,7 @@ Sun Mar 4 09:34:18 UTC 2018 - jengelh@inai.de
- Replace future goals and aims by present capabilities.
-------------------------------------------------------------------
Thu Mar 1 11:44:58 UTC 2018 - sebix+novell.com@sebix.at
Thu Mar 1 11:44:58 UTC 2018 - sebix@sebix.at
- update to version 0.10.1:
* please see upstream changelog at: https://github.com/pydata/xarray/blob/v0.10.1/doc/whats-new.rst

View File

@ -25,11 +25,11 @@
%define psuffix %{nil}
%endif
%define ghversion 2024.07.0
%define ghversion 2024.11.0
%{?sle15_python_module_pythons}
Name: python-xarray%{psuffix}
Version: 2024.7.0
Version: 2024.11.0
Release: 0
Summary: N-D labeled arrays and datasets in Python
License: Apache-2.0
@ -38,12 +38,6 @@ Source: https://github.com/pydata/xarray/archive/refs/tags/v%{ghversion}
# PATCH-FEATURE-UPSTREAM local_dataset.patch gh#pydata/xarray#5377 mcepl@suse.com
# fix xr.tutorial.open_dataset to work with the preloaded cache.
Patch0: local_dataset.patch
# PATCH-FIX-UPSTREAM xarray-pr9321-dasktests.patch gh#pydata/xarray#9321
Patch1: xarray-pr9321-dasktests.patch
# PATCH-FIX-UPSTREAM xarray-pr9356-dasktests.patch gh#pydata/xarray#9356
Patch2: xarray-pr9356-dasktests.patch
# PATCH-FIX-UPSTREAM xarray-pr9403-np2.1-scalar.patch gh#pydata/xarray#9403
Patch3: xarray-pr9403-np2.1-scalar.patch
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
@ -51,9 +45,9 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-numpy >= 1.23
Requires: python-numpy >= 1.24
Requires: python-packaging >= 23.1
Requires: python-pandas >= 2
Requires: python-pandas >= 2.1
Obsoletes: python-xray <= 0.7
BuildArch: noarch
%if %{with test}
@ -76,11 +70,11 @@ The dataset is an in-memory representation of a netCDF file.
Summary: The python xarray[accel] extra
Requires: python-Bottleneck
Requires: python-opt-einsum
Requires: python-scipy
Requires: python-scipy >= 1.11
Requires: python-xarray = %{version}
# not available yet
Recommends: python-flox
Recommends: python-numbagg
Recommends: python-numbagg >= 0.6
%description accel
The [accel] extra for xarray, N-D labeled arrays and datasets in Python
@ -93,7 +87,7 @@ Requires: python-xarray = %{version}
Requires: python-xarray-accel = %{version}
Requires: python-xarray-dev = %{version}
Requires: python-xarray-io = %{version}
Requires: python-xarray-parallel = %{version}
#Requires: python-xarray-parallel = %%{version}
Requires: python-xarray-viz = %{version}
%description complete
@ -121,24 +115,30 @@ Except pre-commit, Use `pip-%{python_bin_suffix} --user install pre-commit` to i
Summary: The python xarray[io] extra
Requires: python-cftime
Requires: python-fsspec
Requires: python-h5netcdf
Requires: python-h5netcdf >= 1.3
Requires: python-netCDF4
Requires: python-pooch
Requires: python-scipy
Requires: python-scipy >= 1.11
Requires: python-xarray = %{version}
Requires: python-zarr
Requires: python-zarr >= 2.16
%description io
The [io] extra for xarray, N-D labeled arrays and datasets in Python
%package parallel
Summary: The python xarray[parallel] extra
Requires: python-dask-complete
Requires: python-xarray = %{version}
%description parallel
The [parallel] extra for xarray, N-D labeled arrays and datasets in Python
#%%package parallel
#Summary: The python xarray[parallel] extra
#Requires: python-dask-complete >= 2023.11
#Requires: python-xarray = %%{version}
#
#%description parallel
#The [parallel] extra for xarray, N-D labeled arrays and datasets in Python
%package viz
Summary: The python xarray[viz] extra
Requires: python-matplotlib
@ -179,12 +179,15 @@ if [ $(getconf LONG_BIT) -eq 32 ]; then
donttest="$donttest or (test_interpolate_chunk_advanced and linear)"
# tests for 64bit types
donttest="$donttest or TestZarrDictStore or TestZarrDirectoryStore or TestZarrWriteEmpty"
donttest="$donttest or test_repr_multiindex or test_array_repr_dtypes_unix"
donttest="$donttest or test_repr_multiindex or test_array_repr_dtypes_unix or test_asi8"
donttest="$donttest or (test_datatree and TestRepr and test_doc_example)"
fi
# h5py was built without ROS3 support, can't use ros3 driver
donttest="$donttest or TestH5NetCDFDataRos3Driver"
# NetCDF4 fails with these unsupported drivers
donttest="$donttest or (TestNetCDF4 and test_compression_encoding and (szip or zstd or blosc_lz or blosc_zlib))"
# skip parallelcompat as the 'parallel' subpackage is not built (see changes file)
donttest="$donttest or test_h5netcdf_storage_options or test_source_encoding_always_present_with_fsspec"
%pytest -n auto -rsEf -k "not ($donttest)" xarray
%endif
@ -212,9 +215,9 @@ donttest="$donttest or (TestNetCDF4 and test_compression_encoding and (szip or z
%doc README.md
%license LICENSE
%files %{python_files parallel}
%doc README.md
%license LICENSE
#%%files %%{python_files parallel}
#%doc README.md
#%%license LICENSE
%files %{python_files viz}
%doc README.md

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:604a801c7bba96524b09b993b159ae998e0987627949b667c884f65895939f11
size 3739324

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3db5160a699a7731fba26b42aef3f175ca3a6adfe5593bebd0b7af90e55d747d
size 3756547

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b3b22095e1069ec6dee4694fd2da64147eac75eb1161206b8f970841786e0056
size 3236300

View File

@ -1,772 +0,0 @@
From e066a6c559e9d7f31c359ea95da42d0e45c585ce Mon Sep 17 00:00:00 2001
From: Justus Magin <keewis@posteo.de>
Date: Tue, 19 Mar 2024 11:32:32 +0100
Subject: [PATCH 01/65] replace the use of `numpy.array_api` with
`array_api_strict`
This would make it a dependency of `namedarray`, and not allow
behavior that is allowed but not required by the array API standard. Otherwise we can:
- use the main `numpy` namespace
- use `array_api_compat` (would also be a new dependency) to allow
optional behavior
---
xarray/namedarray/_array_api.py | 9 ---------
1 file changed, 9 deletions(-)
Index: xarray-2024.05.0/xarray/namedarray/_array_api.py
===================================================================
--- xarray-2024.05.0.orig/xarray/namedarray/_array_api.py
+++ xarray-2024.05.0/xarray/namedarray/_array_api.py
@@ -1,6 +1,5 @@
from __future__ import annotations
-import warnings
from types import ModuleType
from typing import Any
@@ -21,14 +20,6 @@ from xarray.namedarray._typing import (
)
from xarray.namedarray.core import NamedArray
-with warnings.catch_warnings():
- warnings.filterwarnings(
- "ignore",
- r"The numpy.array_api submodule is still experimental",
- category=UserWarning,
- )
- import numpy.array_api as nxp # noqa: F401
-
def _get_data_namespace(x: NamedArray[Any, Any]) -> ModuleType:
if isinstance(x._data, _arrayapi):
@@ -68,13 +59,13 @@ def astype(
Examples
--------
- >>> narr = NamedArray(("x",), nxp.asarray([1.5, 2.5]))
+ >>> narr = NamedArray(("x",), np.asarray([1.5, 2.5]))
>>> narr
<xarray.NamedArray (x: 2)> Size: 16B
- Array([1.5, 2.5], dtype=float64)
+ array([1.5, 2.5])
>>> astype(narr, np.dtype(np.int32))
<xarray.NamedArray (x: 2)> Size: 8B
- Array([1, 2], dtype=int32)
+ array([1, 2], dtype=int32)
"""
if isinstance(x._data, _arrayapi):
xp = x._data.__array_namespace__()
@@ -109,7 +100,7 @@ def imag(
Examples
--------
- >>> narr = NamedArray(("x",), np.asarray([1.0 + 2j, 2 + 4j])) # TODO: Use nxp
+ >>> narr = NamedArray(("x",), np.asarray([1.0 + 2j, 2 + 4j]))
>>> imag(narr)
<xarray.NamedArray (x: 2)> Size: 16B
array([2., 4.])
@@ -141,7 +132,7 @@ def real(
Examples
--------
- >>> narr = NamedArray(("x",), np.asarray([1.0 + 2j, 2 + 4j])) # TODO: Use nxp
+ >>> narr = NamedArray(("x",), np.asarray([1.0 + 2j, 2 + 4j]))
>>> real(narr)
<xarray.NamedArray (x: 2)> Size: 16B
array([1., 2.])
@@ -179,15 +170,15 @@ def expand_dims(
Examples
--------
- >>> x = NamedArray(("x", "y"), nxp.asarray([[1.0, 2.0], [3.0, 4.0]]))
+ >>> x = NamedArray(("x", "y"), np.asarray([[1.0, 2.0], [3.0, 4.0]]))
>>> expand_dims(x)
<xarray.NamedArray (dim_2: 1, x: 2, y: 2)> Size: 32B
- Array([[[1., 2.],
- [3., 4.]]], dtype=float64)
+ array([[[1., 2.],
+ [3., 4.]]])
>>> expand_dims(x, dim="z")
<xarray.NamedArray (z: 1, x: 2, y: 2)> Size: 32B
- Array([[[1., 2.],
- [3., 4.]]], dtype=float64)
+ array([[[1., 2.],
+ [3., 4.]]])
"""
xp = _get_data_namespace(x)
dims = x.dims
Index: xarray-2024.05.0/xarray/tests/__init__.py
===================================================================
--- xarray-2024.05.0.orig/xarray/tests/__init__.py
+++ xarray-2024.05.0/xarray/tests/__init__.py
@@ -147,9 +147,10 @@ has_numbagg_or_bottleneck = has_numbagg
requires_numbagg_or_bottleneck = pytest.mark.skipif(
not has_scipy_or_netCDF4, reason="requires scipy or netCDF4"
)
-has_numpy_array_api, requires_numpy_array_api = _importorskip("numpy", "1.26.0")
has_numpy_2, requires_numpy_2 = _importorskip("numpy", "2.0.0")
+has_array_api_strict, requires_array_api_strict = _importorskip("array_api_strict")
+
def _importorskip_h5netcdf_ros3():
try:
Index: xarray-2024.05.0/xarray/tests/test_array_api.py
===================================================================
--- xarray-2024.05.0.orig/xarray/tests/test_array_api.py
+++ xarray-2024.05.0/xarray/tests/test_array_api.py
@@ -6,20 +6,9 @@ import xarray as xr
from xarray.testing import assert_equal
np = pytest.importorskip("numpy", minversion="1.22")
+xp = pytest.importorskip("array_api_strict")
-try:
- import warnings
-
- with warnings.catch_warnings():
- warnings.simplefilter("ignore")
-
- import numpy.array_api as xp
- from numpy.array_api._array_object import Array
-except ImportError:
- # for `numpy>=2.0`
- xp = pytest.importorskip("array_api_strict")
-
- from array_api_strict._array_object import Array # type: ignore[no-redef]
+from array_api_strict._array_object import Array # isort:skip # type: ignore[no-redef]
@pytest.fixture
@@ -65,8 +54,8 @@ def test_aggregation_skipna(arrays) -> N
def test_astype(arrays) -> None:
np_arr, xp_arr = arrays
expected = np_arr.astype(np.int64)
- actual = xp_arr.astype(np.int64)
- assert actual.dtype == np.int64
+ actual = xp_arr.astype(xp.int64)
+ assert actual.dtype == xp.int64
assert isinstance(actual.data, Array)
assert_equal(actual, expected)
@@ -118,8 +107,10 @@ def test_indexing(arrays: tuple[xr.DataA
def test_properties(arrays: tuple[xr.DataArray, xr.DataArray]) -> None:
np_arr, xp_arr = arrays
- assert np_arr.nbytes == np_arr.data.nbytes
- assert xp_arr.nbytes == np_arr.data.nbytes
+
+ expected = np_arr.data.nbytes
+ assert np_arr.nbytes == expected
+ assert xp_arr.nbytes == expected
def test_reorganizing_operation(arrays: tuple[xr.DataArray, xr.DataArray]) -> None:
Index: xarray-2024.05.0/xarray/tests/test_namedarray.py
===================================================================
--- xarray-2024.05.0.orig/xarray/tests/test_namedarray.py
+++ xarray-2024.05.0/xarray/tests/test_namedarray.py
@@ -1,7 +1,6 @@
from __future__ import annotations
import copy
-import warnings
from abc import abstractmethod
from collections.abc import Mapping
from typing import TYPE_CHECKING, Any, Generic, cast, overload
@@ -79,6 +78,17 @@ class CustomArrayIndexable(
return np
+def check_duck_array_typevar(a: duckarray[Any, _DType]) -> duckarray[Any, _DType]:
+ # Mypy checks a is valid:
+ b: duckarray[Any, _DType] = a
+
+ # Runtime check if valid:
+ if isinstance(b, _arrayfunction_or_api):
+ return b
+ else:
+ raise TypeError(f"a ({type(a)}) is not a valid _arrayfunction or _arrayapi")
+
+
class NamedArraySubclassobjects:
@pytest.fixture
def target(self, data: np.ndarray[Any, Any]) -> Any:
@@ -328,48 +338,27 @@ class TestNamedArray(NamedArraySubclasso
named_array.dims = new_dims
assert named_array.dims == tuple(new_dims)
- def test_duck_array_class(
- self,
- ) -> None:
- def test_duck_array_typevar(
- a: duckarray[Any, _DType],
- ) -> duckarray[Any, _DType]:
- # Mypy checks a is valid:
- b: duckarray[Any, _DType] = a
-
- # Runtime check if valid:
- if isinstance(b, _arrayfunction_or_api):
- return b
- else:
- raise TypeError(
- f"a ({type(a)}) is not a valid _arrayfunction or _arrayapi"
- )
-
+ def test_duck_array_class(self) -> None:
numpy_a: NDArray[np.int64]
numpy_a = np.array([2.1, 4], dtype=np.dtype(np.int64))
- test_duck_array_typevar(numpy_a)
+ check_duck_array_typevar(numpy_a)
masked_a: np.ma.MaskedArray[Any, np.dtype[np.int64]]
masked_a = np.ma.asarray([2.1, 4], dtype=np.dtype(np.int64)) # type: ignore[no-untyped-call]
- test_duck_array_typevar(masked_a)
+ check_duck_array_typevar(masked_a)
custom_a: CustomArrayIndexable[Any, np.dtype[np.int64]]
custom_a = CustomArrayIndexable(numpy_a)
- test_duck_array_typevar(custom_a)
+ check_duck_array_typevar(custom_a)
+ def test_duck_array_class_array_api(self) -> None:
# Test numpy's array api:
- with warnings.catch_warnings():
- warnings.filterwarnings(
- "ignore",
- r"The numpy.array_api submodule is still experimental",
- category=UserWarning,
- )
- import numpy.array_api as nxp
+ nxp = pytest.importorskip("array_api_strict", minversion="1.0")
# TODO: nxp doesn't use dtype typevars, so can only use Any for the moment:
arrayapi_a: duckarray[Any, Any] # duckarray[Any, np.dtype[np.int64]]
- arrayapi_a = nxp.asarray([2.1, 4], dtype=np.dtype(np.int64))
- test_duck_array_typevar(arrayapi_a)
+ arrayapi_a = nxp.asarray([2.1, 4], dtype=nxp.int64)
+ check_duck_array_typevar(arrayapi_a)
def test_new_namedarray(self) -> None:
dtype_float = np.dtype(np.float32)
Index: xarray-2024.05.0/xarray/tests/test_strategies.py
===================================================================
--- xarray-2024.05.0.orig/xarray/tests/test_strategies.py
+++ xarray-2024.05.0/xarray/tests/test_strategies.py
@@ -1,6 +1,9 @@
+import warnings
+
import numpy as np
import numpy.testing as npt
import pytest
+from packaging.version import Version
pytest.importorskip("hypothesis")
# isort: split
@@ -19,7 +22,6 @@ from xarray.testing.strategies import (
unique_subset_of,
variables,
)
-from xarray.tests import requires_numpy_array_api
ALLOWED_ATTRS_VALUES_TYPES = (int, bool, str, np.ndarray)
@@ -199,7 +201,6 @@ class TestVariablesStrategy:
)
)
- @requires_numpy_array_api
@given(st.data())
def test_make_strategies_namespace(self, data):
"""
@@ -208,16 +209,24 @@ class TestVariablesStrategy:
We still want to generate dtypes not in the array API by default, but this checks we don't accidentally override
the user's choice of dtypes with non-API-compliant ones.
"""
- from numpy import (
- array_api as np_array_api, # requires numpy>=1.26.0, and we expect a UserWarning to be raised
- )
+ if Version(np.__version__) >= Version("2.0.0.dev0"):
+ nxp = np
+ else:
+ # requires numpy>=1.26.0, and we expect a UserWarning to be raised
+ with warnings.catch_warnings():
+ warnings.filterwarnings(
+ "ignore", category=UserWarning, message=".+See NEP 47."
+ )
+ from numpy import ( # type: ignore[no-redef,unused-ignore]
+ array_api as nxp,
+ )
- np_array_api_st = make_strategies_namespace(np_array_api)
+ nxp_st = make_strategies_namespace(nxp)
data.draw(
variables(
- array_strategy_fn=np_array_api_st.arrays,
- dtype=np_array_api_st.scalar_dtypes(),
+ array_strategy_fn=nxp_st.arrays,
+ dtype=nxp_st.scalar_dtypes(),
)
)
Index: xarray-2024.05.0/xarray/core/duck_array_ops.py
===================================================================
--- xarray-2024.05.0.orig/xarray/core/duck_array_ops.py
+++ xarray-2024.05.0/xarray/core/duck_array_ops.py
@@ -142,17 +142,25 @@ around.__doc__ = str.replace(
def isnull(data):
data = asarray(data)
- scalar_type = data.dtype.type
- if issubclass(scalar_type, (np.datetime64, np.timedelta64)):
+
+ xp = get_array_namespace(data)
+ scalar_type = data.dtype
+ if dtypes.is_datetime_like(scalar_type):
# datetime types use NaT for null
# note: must check timedelta64 before integers, because currently
# timedelta64 inherits from np.integer
return isnat(data)
- elif issubclass(scalar_type, np.inexact):
+ elif dtypes.isdtype(scalar_type, ("real floating", "complex floating"), xp=xp):
# float types use NaN for null
xp = get_array_namespace(data)
return xp.isnan(data)
- elif issubclass(scalar_type, (np.bool_, np.integer, np.character, np.void)):
+ elif dtypes.isdtype(scalar_type, ("bool", "integral"), xp=xp) or (
+ isinstance(scalar_type, np.dtype)
+ and (
+ np.issubdtype(scalar_type, np.character)
+ or np.issubdtype(scalar_type, np.void)
+ )
+ ):
# these types cannot represent missing values
return full_like(data, dtype=bool, fill_value=False)
else:
@@ -406,13 +414,22 @@ def _create_nan_agg_method(name, coerce_
if invariant_0d and axis == ():
return values
- values = asarray(values)
+ xp = get_array_namespace(values)
+ values = asarray(values, xp=xp)
- if coerce_strings and values.dtype.kind in "SU":
+ if coerce_strings and dtypes.is_string(values.dtype):
values = astype(values, object)
func = None
- if skipna or (skipna is None and values.dtype.kind in "cfO"):
+ if skipna or (
+ skipna is None
+ and (
+ dtypes.isdtype(
+ values.dtype, ("complex floating", "real floating"), xp=xp
+ )
+ or dtypes.is_object(values.dtype)
+ )
+ ):
nanname = "nan" + name
func = getattr(nanops, nanname)
else:
@@ -477,8 +494,8 @@ def _datetime_nanmin(array):
- numpy nanmin() don't work on datetime64 (all versions at the moment of writing)
- dask min() does not work on datetime64 (all versions at the moment of writing)
"""
- assert array.dtype.kind in "mM"
dtype = array.dtype
+ assert dtypes.is_datetime_like(dtype)
# (NaT).astype(float) does not produce NaN...
array = where(pandas_isnull(array), np.nan, array.astype(float))
array = min(array, skipna=True)
@@ -515,7 +532,7 @@ def datetime_to_numeric(array, offset=No
"""
# Set offset to minimum if not given
if offset is None:
- if array.dtype.kind in "Mm":
+ if dtypes.is_datetime_like(array.dtype):
offset = _datetime_nanmin(array)
else:
offset = min(array)
@@ -527,7 +544,7 @@ def datetime_to_numeric(array, offset=No
# This map_blocks call is for backwards compatibility.
# dask == 2021.04.1 does not support subtracting object arrays
# which is required for cftime
- if is_duck_dask_array(array) and np.issubdtype(array.dtype, object):
+ if is_duck_dask_array(array) and dtypes.is_object(array.dtype):
array = array.map_blocks(lambda a, b: a - b, offset, meta=array._meta)
else:
array = array - offset
@@ -537,11 +554,11 @@ def datetime_to_numeric(array, offset=No
array = np.array(array)
# Convert timedelta objects to float by first converting to microseconds.
- if array.dtype.kind in "O":
+ if dtypes.is_object(array.dtype):
return py_timedelta_to_float(array, datetime_unit or "ns").astype(dtype)
# Convert np.NaT to np.nan
- elif array.dtype.kind in "mM":
+ elif dtypes.is_datetime_like(array.dtype):
# Convert to specified timedelta units.
if datetime_unit:
array = array / np.timedelta64(1, datetime_unit)
@@ -641,7 +658,7 @@ def mean(array, axis=None, skipna=None,
from xarray.core.common import _contains_cftime_datetimes
array = asarray(array)
- if array.dtype.kind in "Mm":
+ if dtypes.is_datetime_like(array.dtype):
offset = _datetime_nanmin(array)
# xarray always uses np.datetime64[ns] for np.datetime64 data
@@ -689,7 +706,9 @@ def cumsum(array, axis=None, **kwargs):
def first(values, axis, skipna=None):
"""Return the first non-NA elements in this array along the given axis"""
- if (skipna or skipna is None) and values.dtype.kind not in "iSU":
+ if (skipna or skipna is None) and not (
+ dtypes.isdtype(values.dtype, "signed integer") or dtypes.is_string(values.dtype)
+ ):
# only bother for dtypes that can hold NaN
if is_chunked_array(values):
return chunked_nanfirst(values, axis)
@@ -700,7 +719,9 @@ def first(values, axis, skipna=None):
def last(values, axis, skipna=None):
"""Return the last non-NA elements in this array along the given axis"""
- if (skipna or skipna is None) and values.dtype.kind not in "iSU":
+ if (skipna or skipna is None) and not (
+ dtypes.isdtype(values.dtype, "signed integer") or dtypes.is_string(values.dtype)
+ ):
# only bother for dtypes that can hold NaN
if is_chunked_array(values):
return chunked_nanlast(values, axis)
Index: xarray-2024.05.0/xarray/core/dtypes.py
===================================================================
--- xarray-2024.05.0.orig/xarray/core/dtypes.py
+++ xarray-2024.05.0/xarray/core/dtypes.py
@@ -4,8 +4,9 @@ import functools
from typing import Any
import numpy as np
+from pandas.api.types import is_extension_array_dtype
-from xarray.core import utils
+from xarray.core import npcompat, utils
# Use as a sentinel value to indicate a dtype appropriate NA value.
NA = utils.ReprObject("<NA>")
@@ -60,22 +61,22 @@ def maybe_promote(dtype: np.dtype) -> tu
# N.B. these casting rules should match pandas
dtype_: np.typing.DTypeLike
fill_value: Any
- if np.issubdtype(dtype, np.floating):
+ if isdtype(dtype, "real floating"):
dtype_ = dtype
fill_value = np.nan
- elif np.issubdtype(dtype, np.timedelta64):
+ elif isinstance(dtype, np.dtype) and np.issubdtype(dtype, np.timedelta64):
# See https://github.com/numpy/numpy/issues/10685
# np.timedelta64 is a subclass of np.integer
# Check np.timedelta64 before np.integer
fill_value = np.timedelta64("NaT")
dtype_ = dtype
- elif np.issubdtype(dtype, np.integer):
+ elif isdtype(dtype, "integral"):
dtype_ = np.float32 if dtype.itemsize <= 2 else np.float64
fill_value = np.nan
- elif np.issubdtype(dtype, np.complexfloating):
+ elif isdtype(dtype, "complex floating"):
dtype_ = dtype
fill_value = np.nan + np.nan * 1j
- elif np.issubdtype(dtype, np.datetime64):
+ elif isinstance(dtype, np.dtype) and np.issubdtype(dtype, np.datetime64):
dtype_ = dtype
fill_value = np.datetime64("NaT")
else:
@@ -118,16 +119,16 @@ def get_pos_infinity(dtype, max_for_int=
-------
fill_value : positive infinity value corresponding to this dtype.
"""
- if issubclass(dtype.type, np.floating):
+ if isdtype(dtype, "real floating"):
return np.inf
- if issubclass(dtype.type, np.integer):
+ if isdtype(dtype, "integral"):
if max_for_int:
return np.iinfo(dtype).max
else:
return np.inf
- if issubclass(dtype.type, np.complexfloating):
+ if isdtype(dtype, "complex floating"):
return np.inf + 1j * np.inf
return INF
@@ -146,24 +147,66 @@ def get_neg_infinity(dtype, min_for_int=
-------
fill_value : positive infinity value corresponding to this dtype.
"""
- if issubclass(dtype.type, np.floating):
+ if isdtype(dtype, "real floating"):
return -np.inf
- if issubclass(dtype.type, np.integer):
+ if isdtype(dtype, "integral"):
if min_for_int:
return np.iinfo(dtype).min
else:
return -np.inf
- if issubclass(dtype.type, np.complexfloating):
+ if isdtype(dtype, "complex floating"):
return -np.inf - 1j * np.inf
return NINF
-def is_datetime_like(dtype):
+def is_datetime_like(dtype) -> bool:
"""Check if a dtype is a subclass of the numpy datetime types"""
- return np.issubdtype(dtype, np.datetime64) or np.issubdtype(dtype, np.timedelta64)
+ return _is_numpy_subdtype(dtype, (np.datetime64, np.timedelta64))
+
+
+def is_object(dtype) -> bool:
+ """Check if a dtype is object"""
+ return _is_numpy_subdtype(dtype, object)
+
+
+def is_string(dtype) -> bool:
+ """Check if a dtype is a string dtype"""
+ return _is_numpy_subdtype(dtype, (np.str_, np.character))
+
+
+def _is_numpy_subdtype(dtype, kind) -> bool:
+ if not isinstance(dtype, np.dtype):
+ return False
+
+ kinds = kind if isinstance(kind, tuple) else (kind,)
+ return any(np.issubdtype(dtype, kind) for kind in kinds)
+
+
+def isdtype(dtype, kind: str | tuple[str, ...], xp=None) -> bool:
+ """Compatibility wrapper for isdtype() from the array API standard.
+
+ Unlike xp.isdtype(), kind must be a string.
+ """
+ # TODO(shoyer): remove this wrapper when Xarray requires
+ # numpy>=2 and pandas extensions arrays are implemented in
+ # Xarray via the array API
+ if not isinstance(kind, str) and not (
+ isinstance(kind, tuple) and all(isinstance(k, str) for k in kind)
+ ):
+ raise TypeError(f"kind must be a string or a tuple of strings: {repr(kind)}")
+
+ if isinstance(dtype, np.dtype):
+ return npcompat.isdtype(dtype, kind)
+ elif is_extension_array_dtype(dtype):
+ # we never want to match pandas extension array dtypes
+ return False
+ else:
+ if xp is None:
+ xp = np
+ return xp.isdtype(dtype, kind)
def result_type(
@@ -184,12 +227,26 @@ def result_type(
-------
numpy.dtype for the result.
"""
- types = {np.result_type(t).type for t in arrays_and_dtypes}
+ from xarray.core.duck_array_ops import get_array_namespace
+
+ # TODO(shoyer): consider moving this logic into get_array_namespace()
+ # or another helper function.
+ namespaces = {get_array_namespace(t) for t in arrays_and_dtypes}
+ non_numpy = namespaces - {np}
+ if non_numpy:
+ [xp] = non_numpy
+ else:
+ xp = np
+
+ types = {xp.result_type(t) for t in arrays_and_dtypes}
- for left, right in PROMOTE_TO_OBJECT:
- if any(issubclass(t, left) for t in types) and any(
- issubclass(t, right) for t in types
- ):
- return np.dtype(object)
+ if any(isinstance(t, np.dtype) for t in types):
+ # only check if there's numpy dtypes the array API does not
+ # define the types we're checking for
+ for left, right in PROMOTE_TO_OBJECT:
+ if any(np.issubdtype(t, left) for t in types) and any(
+ np.issubdtype(t, right) for t in types
+ ):
+ return xp.dtype(object)
- return np.result_type(*arrays_and_dtypes)
+ return xp.result_type(*arrays_and_dtypes)
Index: xarray-2024.05.0/xarray/namedarray/core.py
===================================================================
--- xarray-2024.05.0.orig/xarray/namedarray/core.py
+++ xarray-2024.05.0/xarray/namedarray/core.py
@@ -470,10 +470,28 @@ class NamedArray(NamedArrayAggregations,
If the underlying data array does not include ``nbytes``, estimates
the bytes consumed based on the ``size`` and ``dtype``.
"""
+ from xarray.namedarray._array_api import _get_data_namespace
+
if hasattr(self._data, "nbytes"):
return self._data.nbytes # type: ignore[no-any-return]
+
+ if hasattr(self.dtype, "itemsize"):
+ itemsize = self.dtype.itemsize
+ elif isinstance(self._data, _arrayapi):
+ xp = _get_data_namespace(self)
+
+ if xp.isdtype(self.dtype, "bool"):
+ itemsize = 1
+ elif xp.isdtype(self.dtype, "integral"):
+ itemsize = xp.iinfo(self.dtype).bits // 8
+ else:
+ itemsize = xp.finfo(self.dtype).bits // 8
else:
- return self.size * self.dtype.itemsize
+ raise TypeError(
+ "cannot compute the number of bytes (no array API nor nbytes / itemsize)"
+ )
+
+ return self.size * itemsize
@property
def dims(self) -> _Dims:
Index: xarray-2024.05.0/xarray/tests/test_dtypes.py
===================================================================
--- xarray-2024.05.0.orig/xarray/tests/test_dtypes.py
+++ xarray-2024.05.0/xarray/tests/test_dtypes.py
@@ -4,6 +4,18 @@ import numpy as np
import pytest
from xarray.core import dtypes
+from xarray.tests import requires_array_api_strict
+
+try:
+ import array_api_strict
+except ImportError:
+
+ class DummyArrayAPINamespace:
+ bool = None
+ int32 = None
+ float64 = None
+
+ array_api_strict = DummyArrayAPINamespace
@pytest.mark.parametrize(
@@ -58,7 +70,6 @@ def test_inf(obj) -> None:
@pytest.mark.parametrize(
"kind, expected",
[
- ("a", (np.dtype("O"), "nan")), # dtype('S')
("b", (np.float32, "nan")), # dtype('int8')
("B", (np.float32, "nan")), # dtype('uint8')
("c", (np.dtype("O"), "nan")), # dtype('S1')
@@ -98,3 +109,54 @@ def test_nat_types_membership() -> None:
assert np.datetime64("NaT").dtype in dtypes.NAT_TYPES
assert np.timedelta64("NaT").dtype in dtypes.NAT_TYPES
assert np.float64 not in dtypes.NAT_TYPES
+
+
+@pytest.mark.parametrize(
+ ["dtype", "kinds", "xp", "expected"],
+ (
+ (np.dtype("int32"), "integral", np, True),
+ (np.dtype("float16"), "real floating", np, True),
+ (np.dtype("complex128"), "complex floating", np, True),
+ (np.dtype("U"), "numeric", np, False),
+ pytest.param(
+ array_api_strict.int32,
+ "integral",
+ array_api_strict,
+ True,
+ marks=requires_array_api_strict,
+ id="array_api-int",
+ ),
+ pytest.param(
+ array_api_strict.float64,
+ "real floating",
+ array_api_strict,
+ True,
+ marks=requires_array_api_strict,
+ id="array_api-float",
+ ),
+ pytest.param(
+ array_api_strict.bool,
+ "numeric",
+ array_api_strict,
+ False,
+ marks=requires_array_api_strict,
+ id="array_api-bool",
+ ),
+ ),
+)
+def test_isdtype(dtype, kinds, xp, expected) -> None:
+ actual = dtypes.isdtype(dtype, kinds, xp=xp)
+ assert actual == expected
+
+
+@pytest.mark.parametrize(
+ ["dtype", "kinds", "xp", "error", "pattern"],
+ (
+ (np.dtype("int32"), "foo", np, (TypeError, ValueError), "kind"),
+ (np.dtype("int32"), np.signedinteger, np, TypeError, "kind"),
+ (np.dtype("float16"), 1, np, TypeError, "kind"),
+ ),
+)
+def test_isdtype_error(dtype, kinds, xp, error, pattern):
+ with pytest.raises(error, match=pattern):
+ dtypes.isdtype(dtype, kinds, xp=xp)
Index: xarray-2024.05.0/xarray/core/npcompat.py
===================================================================
--- xarray-2024.05.0.orig/xarray/core/npcompat.py
+++ xarray-2024.05.0/xarray/core/npcompat.py
@@ -28,3 +28,33 @@
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+try:
+ # requires numpy>=2.0
+ from numpy import isdtype # type: ignore[attr-defined,unused-ignore]
+except ImportError:
+ import numpy as np
+
+ dtype_kinds = {
+ "bool": np.bool_,
+ "signed integer": np.signedinteger,
+ "unsigned integer": np.unsignedinteger,
+ "integral": np.integer,
+ "real floating": np.floating,
+ "complex floating": np.complexfloating,
+ "numeric": np.number,
+ }
+
+ def isdtype(dtype, kind):
+ kinds = kind if isinstance(kind, tuple) else (kind,)
+
+ unknown_dtypes = [kind for kind in kinds if kind not in dtype_kinds]
+ if unknown_dtypes:
+ raise ValueError(f"unknown dtype kinds: {unknown_dtypes}")
+
+ # verified the dtypes already, no need to check again
+ translated_kinds = [dtype_kinds[kind] for kind in kinds]
+ if isinstance(dtype, np.generic):
+ return any(isinstance(dtype, kind) for kind in translated_kinds)
+ else:
+ return any(np.issubdtype(dtype, kind) for kind in translated_kinds)

View File

@ -1,73 +0,0 @@
From cc4daebf1a4a41483c6b60fc57d82d8bc30911e5 Mon Sep 17 00:00:00 2001
From: Mark Harfouche <mark.harfouche@gmail.com>
Date: Sat, 18 May 2024 12:54:03 -0400
Subject: [PATCH] Use ME in test_plot instead of M
```
pytest xarray/tests/test_plot.py::TestNcAxisNotInstalled::test_ncaxis_notinstalled_line_plot
```
would return the following error
```
xarray/tests/test_plot.py E [100%]
======================================= ERRORS =======================================
____ ERROR at setup of TestNcAxisNotInstalled.test_ncaxis_notinstalled_line_plot _____
self = <xarray.tests.test_plot.TestNcAxisNotInstalled object at 0x78ed1992aa10>
@pytest.fixture(autouse=True)
def setUp(self) -> None:
"""
Create a DataArray with a time-axis that contains cftime.datetime
objects.
"""
month = np.arange(1, 13, 1)
data = np.sin(2 * np.pi * month / 12.0)
darray = DataArray(data, dims=["time"])
> darray.coords["time"] = xr.cftime_range(
start="2017", periods=12, freq="1M", calendar="noleap"
)
/home/mark/git/xarray/xarray/tests/test_plot.py:3004:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/mark/git/xarray/xarray/coding/cftime_offsets.py:1129: in cftime_range
offset = to_offset(freq)
/home/mark/git/xarray/xarray/coding/cftime_offsets.py:767: in to_offset
_emit_freq_deprecation_warning(freq)
/home/mark/git/xarray/xarray/coding/cftime_offsets.py:751: in _emit_freq_deprecation_warning
emit_user_level_warning(message, FutureWarning)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
message = "'M' is deprecated and will be removed in a future version. Please use 'ME' instead of 'M'."
category = <class 'FutureWarning'>
def emit_user_level_warning(message, category=None) -> None:
"""Emit a warning at the user level by inspecting the stack trace."""
stacklevel = find_stack_level()
> return warnings.warn(message, category=category, stacklevel=stacklevel)
E FutureWarning: 'M' is deprecated and will be removed in a future version. Please use 'ME' instead of 'M'.
/home/mark/git/xarray/xarray/core/utils.py:1112: FutureWarning
============================== short test summary info ===============================
ERROR xarray/tests/test_plot.py::TestNcAxisNotInstalled::test_ncaxis_notinstalled_line_plot - FutureWarning: 'M' is deprecated and will be removed in a future version. Please ...
================================== 1 error in 0.64s ==================================
```
---
xarray/tests/test_plot.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py
index e636be5589f..27f4ded5646 100644
--- a/xarray/tests/test_plot.py
+++ b/xarray/tests/test_plot.py
@@ -3002,7 +3002,7 @@ def setUp(self) -> None:
data = np.sin(2 * np.pi * month / 12.0)
darray = DataArray(data, dims=["time"])
darray.coords["time"] = xr.cftime_range(
- start="2017", periods=12, freq="1M", calendar="noleap"
+ start="2017", periods=12, freq="1ME", calendar="noleap"
)
self.darray = darray

View File

@ -1,118 +0,0 @@
From 9406c49fb281d9ffbf88bfd46133288bd23649a4 Mon Sep 17 00:00:00 2001
From: Deepak Cherian <deepak@cherian.net>
Date: Tue, 6 Aug 2024 22:21:29 -0600
Subject: [PATCH 1/2] Fix some dask tests
---
xarray/tests/test_dask.py | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/xarray/tests/test_dask.py b/xarray/tests/test_dask.py
index 20491eca91a..1ef759b3d6a 100644
--- a/xarray/tests/test_dask.py
+++ b/xarray/tests/test_dask.py
@@ -640,8 +640,10 @@ def counting_get(*args, **kwargs):
def test_duplicate_dims(self):
data = np.random.normal(size=(4, 4))
- arr = DataArray(data, dims=("x", "x"))
- chunked_array = arr.chunk({"x": 2})
+ with pytest.warns(UserWarning, match="Duplicate dimension"):
+ arr = DataArray(data, dims=("x", "x"))
+ with pytest.warns(UserWarning, match="Duplicate dimension"):
+ chunked_array = arr.chunk({"x": 2})
assert chunked_array.chunks == ((2, 2), (2, 2))
assert chunked_array.chunksizes == {"x": (2, 2)}
@@ -1364,7 +1366,8 @@ def test_map_blocks_ds_transformations(func, map_ds):
@pytest.mark.parametrize("obj", [make_da(), make_ds()])
def test_map_blocks_da_ds_with_template(obj):
func = lambda x: x.isel(x=[1])
- template = obj.isel(x=[1, 5, 9])
+ # a simple .isel(x=[1, 5, 9]) puts all those in a single chunk.
+ template = xr.concat([obj.isel(x=[i]) for i in [1, 5, 9]], dim="x")
with raise_if_dask_computes():
actual = xr.map_blocks(func, obj, template=template)
assert_identical(actual, template)
@@ -1395,15 +1398,16 @@ def test_map_blocks_roundtrip_string_index():
def test_map_blocks_template_convert_object():
da = make_da()
+ ds = da.to_dataset()
+
func = lambda x: x.to_dataset().isel(x=[1])
- template = da.to_dataset().isel(x=[1, 5, 9])
+ template = xr.concat([da.to_dataset().isel(x=[i]) for i in [1, 5, 9]], dim="x")
with raise_if_dask_computes():
actual = xr.map_blocks(func, da, template=template)
assert_identical(actual, template)
- ds = da.to_dataset()
func = lambda x: x.to_dataarray().isel(x=[1])
- template = ds.to_dataarray().isel(x=[1, 5, 9])
+ template = xr.concat([ds.to_dataarray().isel(x=[i]) for i in [1, 5, 9]], dim="x")
with raise_if_dask_computes():
actual = xr.map_blocks(func, ds, template=template)
assert_identical(actual, template)
@@ -1429,7 +1433,7 @@ def test_map_blocks_errors_bad_template(obj):
xr.map_blocks(
lambda a: a.isel(x=[1]).assign_coords(x=[120]), # assign bad index values
obj,
- template=obj.isel(x=[1, 5, 9]),
+ template=xr.concat([obj.isel(x=[i]) for i in [1, 5, 9]], dim="x"),
).compute()
From 6fa200e542fe18b99a86a53126c10639192ea5e1 Mon Sep 17 00:00:00 2001
From: Deepak Cherian <deepak@cherian.net>
Date: Tue, 6 Aug 2024 22:29:24 -0600
Subject: [PATCH 2/2] Cleanup
---
xarray/tests/test_variable.py | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/xarray/tests/test_variable.py b/xarray/tests/test_variable.py
index 3f3f1756e45..ff6522c00eb 100644
--- a/xarray/tests/test_variable.py
+++ b/xarray/tests/test_variable.py
@@ -318,12 +318,11 @@ def test_datetime64_valid_range(self):
with pytest.raises(pderror, match=r"Out of bounds nanosecond"):
self.cls(["t"], [data])
- @pytest.mark.xfail(reason="pandas issue 36615")
@pytest.mark.filterwarnings("ignore:Converting non-nanosecond")
def test_timedelta64_valid_range(self):
data = np.timedelta64("200000", "D")
pderror = pd.errors.OutOfBoundsTimedelta
- with pytest.raises(pderror, match=r"Out of bounds nanosecond"):
+ with pytest.raises(pderror, match=r"Cannot convert"):
self.cls(["t"], [data])
def test_pandas_data(self):
@@ -2301,20 +2300,20 @@ def test_chunk(self):
assert blocked.chunks == ((3,), (3, 1))
assert blocked.data.name != first_dask_name
- @pytest.mark.xfail
+ @pytest.mark.skip
def test_0d_object_array_with_list(self):
super().test_0d_object_array_with_list()
- @pytest.mark.xfail
+ @pytest.mark.skip
def test_array_interface(self):
# dask array does not have `argsort`
super().test_array_interface()
- @pytest.mark.xfail
+ @pytest.mark.skip
def test_copy_index(self):
super().test_copy_index()
- @pytest.mark.xfail
+ @pytest.mark.skip
@pytest.mark.filterwarnings("ignore:elementwise comparison failed.*:FutureWarning")
def test_eq_all_dtypes(self):
super().test_eq_all_dtypes()

View File

@ -1,98 +0,0 @@
From 70e3f30d5a636f6d847acb2dd0d12cffeb601d41 Mon Sep 17 00:00:00 2001
From: Deepak Cherian <deepak@cherian.net>
Date: Tue, 13 Aug 2024 19:47:10 -0600
Subject: [PATCH 1/2] xfail np.cross tests
xref #9327
---
xarray/core/computation.py | 6 +++---
xarray/tests/test_computation.py | 12 ++++++++----
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/xarray/core/computation.py b/xarray/core/computation.py
index 5d21d0836b9..bb7122e82de 100644
--- a/xarray/core/computation.py
+++ b/xarray/core/computation.py
@@ -23,7 +23,7 @@
from xarray.core.merge import merge_attrs, merge_coordinates_without_align
from xarray.core.options import OPTIONS, _get_keep_attrs
from xarray.core.types import Dims, T_DataArray
-from xarray.core.utils import is_dict_like, is_duck_dask_array, is_scalar, parse_dims
+from xarray.core.utils import is_dict_like, is_scalar, parse_dims
from xarray.core.variable import Variable
from xarray.namedarray.parallelcompat import get_chunked_array_type
from xarray.namedarray.pycompat import is_chunked_array
@@ -1693,11 +1693,11 @@ def cross(
if a.sizes[dim] < b.sizes[dim]:
a = a.pad({dim: (0, 1)}, constant_values=0)
# TODO: Should pad or apply_ufunc handle correct chunking?
- a = a.chunk({dim: -1}) if is_duck_dask_array(a.data) else a
+ a = a.chunk({dim: -1}) if is_chunked_array(a.data) else a
else:
b = b.pad({dim: (0, 1)}, constant_values=0)
# TODO: Should pad or apply_ufunc handle correct chunking?
- b = b.chunk({dim: -1}) if is_duck_dask_array(b.data) else b
+ b = b.chunk({dim: -1}) if is_chunked_array(b.data) else b
else:
raise ValueError(
f"{dim!r} on {'a' if a.sizes[dim] == 1 else 'b'} is incompatible:"
diff --git a/xarray/tests/test_computation.py b/xarray/tests/test_computation.py
index 8b480b02472..e974b8b1ac8 100644
--- a/xarray/tests/test_computation.py
+++ b/xarray/tests/test_computation.py
@@ -2547,7 +2547,8 @@ def test_polyfit_polyval_integration(
"cartesian",
1,
],
- [ # Test 1 sized arrays with coords:
+ # Test 1 sized arrays with coords:
+ pytest.param(
xr.DataArray(
np.array([1]),
dims=["cartesian"],
@@ -2562,8 +2563,10 @@ def test_polyfit_polyval_integration(
np.array([4, 5, 6]),
"cartesian",
-1,
- ],
- [ # Test filling in between with coords:
+ marks=(pytest.mark.xfail(),),
+ ),
+ # Test filling in between with coords:
+ pytest.param(
xr.DataArray(
[1, 2],
dims=["cartesian"],
@@ -2578,7 +2581,8 @@ def test_polyfit_polyval_integration(
np.array([4, 5, 6]),
"cartesian",
-1,
- ],
+ marks=(pytest.mark.xfail(),),
+ ),
],
)
def test_cross(a, b, ae, be, dim: str, axis: int, use_dask: bool) -> None:
From deb9e3266ca163575b200960c14c87fc999dcfc6 Mon Sep 17 00:00:00 2001
From: Deepak Cherian <deepak@cherian.net>
Date: Tue, 13 Aug 2024 19:49:56 -0600
Subject: [PATCH 2/2] Force numpy>=2
---
ci/requirements/environment.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ci/requirements/environment.yml b/ci/requirements/environment.yml
index ef02a3e7f23..40ef4a7fc74 100644
--- a/ci/requirements/environment.yml
+++ b/ci/requirements/environment.yml
@@ -26,7 +26,7 @@ dependencies:
- numba
- numbagg
- numexpr
- - numpy
+ - numpy>=2
- opt_einsum
- packaging
- pandas

View File

@ -1,44 +0,0 @@
From 17367f3545a48d8b8a18bf8f7054b19351c255dc Mon Sep 17 00:00:00 2001
From: Justus Magin <keewis@posteo.de>
Date: Tue, 27 Aug 2024 15:18:32 +0200
Subject: [PATCH 1/3] also call `np.asarray` on numpy scalars
---
xarray/core/variable.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: xarray-2024.07.0/xarray/core/variable.py
===================================================================
--- xarray-2024.07.0.orig/xarray/core/variable.py
+++ xarray-2024.07.0/xarray/core/variable.py
@@ -309,7 +309,7 @@ def as_compatible_data(
else:
data = np.asarray(data)
- if not isinstance(data, np.ndarray) and (
+ if not isinstance(data, np.ndarray | np.generic) and (
hasattr(data, "__array_function__") or hasattr(data, "__array_namespace__")
):
return cast("T_DuckArray", data)
Index: xarray-2024.07.0/xarray/tests/test_variable.py
===================================================================
--- xarray-2024.07.0.orig/xarray/tests/test_variable.py
+++ xarray-2024.07.0/xarray/tests/test_variable.py
@@ -2585,10 +2585,15 @@ class TestAsCompatibleData(Generic[T_Duc
assert source_ndarray(x) is source_ndarray(as_compatible_data(x))
def test_converted_types(self):
- for input_array in [[[0, 1, 2]], pd.DataFrame([[0, 1, 2]])]:
+ for input_array in [
+ [[0, 1, 2]],
+ pd.DataFrame([[0, 1, 2]]),
+ np.float64(1.4),
+ np.str_("abc"),
+ ]:
actual = as_compatible_data(input_array)
assert_array_equal(np.asarray(input_array), actual)
- assert np.ndarray == type(actual)
+ assert np.ndarray is type(actual)
assert np.asarray(input_array).dtype == actual.dtype
def test_masked_array(self):