Skip to content

Commit

Permalink
set `overwrite_enconded_chunks as backend_kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Jimenez-Urias committed Apr 29, 2020
1 parent 80dd7da commit 4ebf380
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion xarray/backends/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ def open_dataset(
drop_variables=None,
backend_kwargs=None,
use_cftime=None,
overwrite_encoded_chunks=False,
):
"""Open and decode a dataset from a file or file-like object.
Expand Down
3 changes: 1 addition & 2 deletions xarray/backends/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def open_zarr(
backend_kwargs = {
"synchronizer": synchronizer,
"consolidated": consolidated,
# "overwrite_encoded_chunks": overwrite_encoded_chunks,
"overwrite_encoded_chunks": overwrite_encoded_chunks,
**kwargs,
}

Expand All @@ -595,7 +595,6 @@ def open_zarr(
engine="zarr",
chunks=chunks,
drop_variables=drop_variables,
overwrite_encoded_chunks=overwrite_encoded_chunks,
backend_kwargs=backend_kwargs,
)

Expand Down

0 comments on commit 4ebf380

Please sign in to comment.