From f05c5ec799f144b8cc3b9355a702814be7285d8f Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Fri, 13 Dec 2024 08:59:54 -0700 Subject: [PATCH] Fix upstream Zarr compatibility (#9884) Closes #9880 --- xarray/backends/zarr.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xarray/backends/zarr.py b/xarray/backends/zarr.py index cb3ab375c31..d7f056a209a 100644 --- a/xarray/backends/zarr.py +++ b/xarray/backends/zarr.py @@ -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,