Skip to content

Commit

Permalink
Fix upstream Zarr compatibility (#9884)
Browse files Browse the repository at this point in the history
Closes #9880
  • Loading branch information
dcherian authored Dec 13, 2024
1 parent b7e6036 commit f05c5ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xarray/backends/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,9 +1135,7 @@ def set_variables(self, variables, check_encoding_set, writer, unlimited_dims=No
else:
encoded_attrs[DIMENSION_KEY] = dims

encoding["exists_ok" if _zarr_v3() else "overwrite"] = (
True if self._mode == "w" else False
)
encoding["overwrite"] = True if self._mode == "w" else False

zarr_array = self._create_new_array(
name=name,
Expand Down

0 comments on commit f05c5ec

Please sign in to comment.