Skip to content

Commit 53172cb

Browse files
authored
Allow write_empty_chunks to be set in Zarr encoding (#6348)
1 parent 95bb9ae commit 53172cb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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)