Releases: pydata/xarray
v2023.09.0
This release continues work on the new :py:class:xarray.Coordinates object, allows to provide preferred_chunks when
reading from netcdf files, enables :py:func:xarray.apply_ufunc to handle missing core dimensions and fixes several bugs.
Thanks to the 24 contributors to this release: Alexander Fischer, Amrest Chinkamol, Benoit Bovy, Darsh Ranjan, Deepak Cherian,
Gianfranco Costamagna, Gregorio L. Trevisan, Illviljan, Joe Hamman, JR, Justus Magin, Kai Mühlbauer, Kian-Meng Ang, Kyle Sunden,
Martin Raspaud, Mathias Hauser, Mattia Almansi, Maximilian Roos, András Gunyhó, Michael Niklas, Richard Kleijn, Riulinchen,
Tom Nicholas and Wiktor Kraśnicki.
What's Changed
- [skip-ci] dev whats-new by @dcherian in #8098
- Refactor update coordinates to better handle multi-coordinate indexes by @benbovy in #8094
- Better error message when trying to set an index from a scalar coordinate by @benbovy in #8109
- Fix merge with compat=minimal (coord names) by @benbovy in #8104
- Fix Codecov by @headtr1ck in #7142
- Better default behavior of the Coordinates constructor by @benbovy in #8107
- Document drop_variables in open_mfdataset by @jerabaul29 in #8083
- adapted the docstring of xarray.DataArray.differentiate by @afisc in #8127
- Add
Coordinates.assign()method by @benbovy in #8102 - Fix pandas'
interpolate(fill_value=)error by @max-sixty in #8139 - Fix doctests: pandas 2.1 MultiIndex repr with nan by @benbovy in #8141
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #8145
- Cut middle version from CI by @max-sixty in #8156
- Dirty workaround for mypy 1.5 error by @benbovy in #8142
- tests: Update US/Eastern timezone to America/New_York by @LocutusOfBorg in #8153
- Docs page on internal design by @TomNicholas in #7991
- Fix tokenize with empty attrs by @malmans2 in #8101
- Consistently report all dimensions in error messages if invalid dimensions are given by @mgunyho in #8079
- Fix typos by @kianmeng in #8163
- to_stacked_array: better error msg & refactor by @mathause in #8130
- fix miscellaneous
numpy=2.0errors by @keewis in #8117 - Bump actions/checkout from 3 to 4 by @dependabot in #8169
- Don't try to sort hashable, map to string by @Illviljan in #8172
- Implement preferred_chunks for netcdf 4 backends by @mraspaud in #7948
- Fix assignment with .loc by @dranjan in #8067
- improve typing of DataArray and Dataset reductions by @rhkleijn in #6746
- FIX: handle NaT values in dt-accessor by @kmuehlbauer in #8084
- Fix
PeriodIndexdeprecation in xarray tests by @max-sixty in #8182 - Display data returned in
apply_ufuncerror message by @max-sixty in #8179 - Set dev version above released version by @max-sixty in #8181
- Remove
setup.cfgin favor ofpyproject.tomlby @max-sixty in #8183 - Fix comment alignment in
pyproject.tomlby @max-sixty in #8185 - fix the failing docs by @keewis in #8188
- Fix pytest markers by @max-sixty in #8191
- Fix several warnings in the tests by @headtr1ck in #8184
- FIX: use "krogh" as interpolator method-string instead of "krog" by @kmuehlbauer in #8187
- Update contourf call check for mpl 3.8 by @ksunden in #8186
- Fix static typing with Matplotlib 3.8 by @headtr1ck in #8030
- Exclude dimensions used in faceting from squeeze by @wkrasnicki in #8174
- Remove
requirements.txtby @max-sixty in #8196 - Preserve nanosecond resolution when encoding/decoding times by @kmuehlbauer in #7827
- Allow
apply_ufuncto ignore missing core dims by @max-sixty in #8138 - Adjust ufunc error message by @max-sixty in #8192
- Add some more mypy checks by @max-sixty in #8193
- Fix sortby link in reshaping.rst by @gtrevisan in #8202
- remove invalid statement from doc/user-guide/io.rst by @kmuehlbauer in #8194
- Move
.rolling_expfunctions fromreducetoapply_ufuncby @max-sixty in #8114 - Add T_DuckArray type hint to Variable.data by @Illviljan in #8203
- Attempt to reproduce #7079 in CI by @jhamman in #7488
- Add comments on when to use which
TypeVarby @max-sixty in #8212 - Start a list of modules which require typing by @max-sixty in #8198
- Make documentation of DataArray.where clearer by @Riulinchen in #7955
- Removed
.iselforDatasetRolling.constructconsistent rolling behavior by @p4perf4ce in #7578 - Skip flaky test by @max-sixty in #8219
- Convert
indexes.pyto useSelffor typing by @max-sixty in #8217 - Use
Selfrather than concrete types, removecasts by @max-sixty in #8216 - Allow creating DataArrays with nD coordinate variables by @dcherian in #8126
- Remove an import fallback by @max-sixty in #8228
- Add a
Literaltyping by @max-sixty in #8227 - Add typing to functions related to data_vars by @Illviljan in #8226
- override
unitsfor datetime64/timedelta64 variables to preserve integer dtype by @kmuehlbauer in #8201 - test_interpolate_pd_compat with range of fill_value's by @kmuehlbauer in #8189
- Rewrite typed_ops by @headtr1ck in #8204
- adapt to NEP 51 by @keewis in #8064
- decode variable with mismatched coordinate attribute by @kmuehlbauer in #8195
- Release 2023.09.0 by @kmuehlbauer in #8229
New Contributors
- @jerabaul29 made their first contribution in #8083
- @afisc made their first contribution in #8127
- @LocutusOfBorg made their first contribution in #8153
- @kianmeng made their first contribution in #8163
- @dranjan made their first contribution in #8067
- @wkrasnicki made their first contribution in #8174
- @gtrevisan made their first contribution in #8202
- @Riulinchen made their first contribution in #7955
- @p4perf4ce made their first contribution in #7578
Full Changelog: v2023.08.0...v2023.09.0
v2023.08.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 :py:class:xarray.Coordinates object.
Thanks to the 16 contributors to this release: Anderson Banihirwe, Articoking, Benoit Bovy, Deepak Cherian, Harshitha, Ian Carroll,
Joe Hamman, Justus Magin, Peter Hill, Rachel Wegener, Riley Kuttruff, Thomas Nicholas, Tom Nicholas, ilgast, quantsnus, vallirep
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_variableby @ZedThree in #7995 - Add documentation on custom indexes by @benbovy in #6975
- Allow opening datasets with nD dimenson coordinate variables. by @dcherian in #7989
- Update copyright year in README by @dcherian in #8007
- join together duplicate entries in the text
reprby @keewis in #7225 - Core team member guide by @TomNicholas in #7999
- Expose "Coordinates" as part of Xarray's public API by @benbovy in #7368
- improved docstring of to_netcdf (issue #7127) by @vallirep in #7947
- Update interpolate_na in dataset.py by @ilgast in #7974
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #8014
- 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
otherin GroupBy binary ops. by @dcherian in #7684 - change cumproduct to cumprod by @quantsnus in #8031
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #8032
- 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_chunksby @RKuttruff in #8016 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #8052
- Count documentation by @Articoking in #8057
- Bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10 by @dependabot in #8068
- add design document for "named-array" by @andersy005 in #8073
- unpin
numpyby @keewis in #8061 - Extending the glossary by @harshitha1201 in #7732
- Add 2023.08.0 whats-new by @dcherian in #8081
New Contributors
- @ZedThree made their first contribution in #7995
- @vallirep made their first contribution in #7947
- @ilgast made their first contribution in #7974
- @rwegener2 made their first contribution in #8012
- @quantsnus made their first contribution in #8031
- @RKuttruff made their first contribution in #8016
- @Articoking made their first contribution in #8057
Full Changelog: v2023.07.0...v2023.08.0
v2023.07.0
This release brings improvements to the documentation on wrapping numpy-like arrays, improved docstrings, and bug fixes.
Thanks to our 7 contributors:
Harshitha, Illviljan, Johan Mathe, Justus Magin, Kai Mühlbauer, Tom Nicholas, and Yvonne Fröhlich.
What's Changed
- Allow cubed arrays to be passed to flox groupby by @TomNicholas in #7941
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #7944
- Duck array documentation improvements by @TomNicholas in #7911
- Bump pypa/gh-action-pypi-publish from 1.8.6 to 1.8.7 by @dependabot in #7956
- Docstring examples by @harshitha1201 in #7881
- Update minimum version of typing extensions in pre-commit by @TomNicholas in #7960
- manually unshallow the repository on RTD by @keewis in #7961
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #7959
- 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
- Use another repository for upstream testing by @Illviljan in #7970
- Skip broken tests on Python 3.11 and Windows by @Illviljan in #7972
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #7973
- 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
- Release summary for v2023.07.0 by @TomNicholas in #7979
- Add new what's new section by @Illviljan in #7986
- Remove hue_style from plot1d docstring by @Illviljan in #7925
- Update whats-new.rst for new release by @TomNicholas in #7993
New Contributors
- @johmathe made their first contribution in #7983
- @yvonnefroehlich made their first contribution in #7984
Full Changelog: v2023.06.0...v2023.07.0
v2023.06.0
This release adds features to curvefit, improves the performance of concatenation, and fixes various bugs.
Thank to our 13 contributors to this release:
Anderson Banihirwe, Deepak Cherian, Illviljan, Juniper Tyree, Justus Magin, Martin Fleischmann,
Mattia Almansi, mgunyho, Negin Sobhani, Rutger van Haasteren, Tom Nicholas, Tom White.
What's Changed
- Array API fixes for astype by @TomNicholas in #7847
- Add type hints to test_dtypes by @Illviljan in #7858
- Bump codecov/codecov-action from 3.1.3 to 3.1.4 by @dependabot in #7859
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #7864
- Upload nightly wheels to scientific-python-nightly-wheels by @martinfleis in #7865
- adapt the
pint+dasktest to the newest version ofpintby @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
numpyfor the expected result by @keewis in #7875 - add
numbato the py3.11 environment by @keewis in #7867 - deprecate the
cdms2conversion methods by @keewis in #7876 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #7882
- Implement multidimensional initial guess and bounds for
curvefitby @mgunyho in #7821 - move to
setup-micromambaby @keewis in #7878 - Improve concat performance by @Illviljan in #7824
- retire the TestPyPI workflow by @keewis in #7889
- 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
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #7912
- 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
- Update calendar for developers meeting by @shoyer in #7933
- Fix regression with grouper object on an IndexVariable by @mwtoews in #7920
- Release summary for v2023.06.0 by @TomNicholas in #7934
- Fix check for chunk_store in zarr backend by @juntyr in #7923
- fixing rolling_window issue with cupy by @negin513 in #7938
New Contributors
- @martinfleis made their first contribution in #7865
- @vhaasteren made their first contribution in #7874
- @juntyr made their first contribution in #7923
- @negin513 made their first contribution in #7938
Full Changelog: v2023.05.0...v2023.06.0
v2023.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!
Note: If you are using a locally-installed development version of xarray then pulling the changes from this release may require you to re-install.
This avoids an error where xarray cannot detect dask via the new entrypoints system introduced in pull rquest #7019. See issue #7856 for details.
Thanks to our 14 contributors:
Alan Brammer, crusaderky, David Stansby, dcherian, Deeksha, Deepak Cherian, Illviljan, James McCreight,
Joe Hamman, Justus Magin, Kyle Sunden, Max Hollmann, mgunyho, and Tom Nicholas!
v2023.04.2
This is a bugfix release to fix another bug with binning (#7766)
What's Changed
- Docstrings examples for string methods by @remigathoni in #7669
- Fix groupby_bins when labels are specified by @dcherian in #7769
Full Changelog: v2023.04.1...v2023.04.2
v2023.04.1
This is a patch release to fix a bug with groupby_bins
What's Changed
Full Changelog: v2023.04.0...v2023.04.1
v2023.04.0
What's Changed
This release includes support for pandas v2, allows refreshing of backend engines in a session, and removes deprecated backends
for rasterio and cfgrib.
Thanks to our 19 contributors:
Chinemere, Tom Coleman, Deepak Cherian, Harshitha, Illviljan, Jessica Scheick, Joe Hamman, Justus Magin, Kai Mühlbauer, Kwonil-Kim, Mary Gathoni, Michael Niklas, Pierre, Scott Henderson, Shreyal Gupta, Spencer Clark, mccloskey, nishtha981, veenstrajelmer
New Contributors
- @harshitha1201 made their first contribution in #7638
- @veenstrajelmer made their first contribution in #7553
- @Chinemere made their first contribution in #7677
- @nishtha981 made their first contribution in #7623
- @Kwonil-Kim made their first contribution in #7746
- @mccloskey made their first contribution in #7747
Full Changelog: v2023.03.0...v2023.04.0
v2023.03.0
This release brings many bug fixes, and some new features. The maximum pandas version is pinned to <2 until we can support the new pandas datetime types.
Thanks to our 19 contributors:
Abel Aoun, Alex Goodman, Deepak Cherian, Illviljan, Jody Klymak, Joe Hamman, Justus Magin, Mary Gathoni, Mathias Hauser, Mattia Almansi, Mick, Oriol Abril-Pla, Patrick Hoefler, Paul Ockenfuß, Pierre, Shreyal Gupta, Spencer Clark, Tom Nicholas, Tom Vo
New Contributors
- @tomvothecoder made their first contribution in #7579
- @agoodm made their first contribution in #7494
- @Ravenin7 made their first contribution in #7615
- @Ockenfuss made their first contribution in #7598
- @remigathoni made their first contribution in #7625
- @phofl made their first contribution in #7642
Full Changelog: v2023.02.0...v2023.03.0
v2023.02.0
This release brings a major upgrade to 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.
Support for python 3.8 has been dropped.