Skip to content

Commit

Permalink
Fix upstream Zarr compatibility
Browse files Browse the repository at this point in the history
Closes #9880
  • Loading branch information
dcherian committed Dec 13, 2024
1 parent 49502fc commit c4f2187
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 c4f2187

Please sign in to comment.