Skip to content
forked from pydata/xarray

Commit 0bf1017

Browse files
committed
Merge remote-tracking branch 'upstream/main' into vectorize-groupby-binary
* upstream/main: Explicit indexes (pydata#5692) Remove test_rasterio_vrt_network (pydata#6371) Allow write_empty_chunks to be set in Zarr encoding (pydata#6348)
2 parents 050ea70 + 3ead17e commit 0bf1017

40 files changed

+4477
-2187
lines changed

doc/user-guide/plotting.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Finally, if a dataset does not have any coordinates it enumerates all data point
251251
.. ipython:: python
252252
:okwarning:
253253
254-
air1d_multi = air1d_multi.drop("date")
254+
air1d_multi = air1d_multi.drop(["date", "time", "decimal_day"])
255255
air1d_multi.plot()
256256
257257
The same applies to 2D plots below.

doc/whats-new.rst

+14
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@ v2022.03.1 (unreleased)
2222
New Features
2323
~~~~~~~~~~~~
2424

25+
- Add a ``create_index=True`` parameter to :py:meth:`Dataset.stack` and
26+
:py:meth:`DataArray.stack` so that the creation of multi-indexes is optional
27+
(:pull:`5692`). By `Benoît Bovy <https://github.com/benbovy>`_.
28+
- Multi-index levels are now accessible through their own, regular coordinates
29+
instead of virtual coordinates (:pull:`5692`).
30+
By `Benoît Bovy <https://github.com/benbovy>`_.
2531

2632
Breaking changes
2733
~~~~~~~~~~~~~~~~
2834

35+
- The Dataset and DataArray ``rename*`` methods do not implicitly add or drop
36+
indexes. (:pull:`5692`). By `Benoît Bovy <https://github.com/benbovy>`_.
2937

3038
Deprecations
3139
~~~~~~~~~~~~
@@ -37,6 +45,9 @@ Bug fixes
3745
- Set ``skipna=None`` for all ``quantile`` methods (e.g. :py:meth:`Dataset.quantile`) and
3846
ensure it skips missing values for float dtypes (consistent with other methods). This should
3947
not change the behavior (:pull:`6303`). By `Mathias Hauser <https://github.com/mathause>`_.
48+
- Many bugs fixed by the explicit indexes refactor, mainly related to multi-index (virtual)
49+
coordinates. See the corresponding pull-request on GitHub for more details. (:pull:`5692`).
50+
By `Benoît Bovy <https://github.com/benbovy>`_.
4051

4152
Documentation
4253
~~~~~~~~~~~~~
@@ -45,6 +56,9 @@ Documentation
4556
Internal Changes
4657
~~~~~~~~~~~~~~~~
4758

59+
- Many internal changes due to the explicit indexes refactor. See the
60+
corresponding pull-request on GitHub for more details. (:pull:`5692`).
61+
By `Benoît Bovy <https://github.com/benbovy>`_.
4862

4963
.. _whats-new.2022.02.0:
5064
.. _whats-new.2022.03.0:

xarray/backends/zarr.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,13 @@ def extract_zarr_variable_encoding(
212212
"""
213213
encoding = variable.encoding.copy()
214214

215-
valid_encodings = {"chunks", "compressor", "filters", "cache_metadata"}
215+
valid_encodings = {
216+
"chunks",
217+
"compressor",
218+
"filters",
219+
"cache_metadata",
220+
"write_empty_chunks",
221+
}
216222

217223
if raise_on_invalid:
218224
invalid = [k for k in encoding if k not in valid_encodings]

0 commit comments

Comments
 (0)