From fc432e8d7a0184170eb4df5e11e5aef21b4520ee Mon Sep 17 00:00:00 2001 From: "Mads R. B. Kristensen" Date: Thu, 5 Oct 2023 16:40:22 +0200 Subject: [PATCH] doc --- python/kvikio/zarr.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/kvikio/zarr.py b/python/kvikio/zarr.py index 0b174316eb..982b57fedb 100644 --- a/python/kvikio/zarr.py +++ b/python/kvikio/zarr.py @@ -372,12 +372,10 @@ def open_cupy_array( **kwargs, ) except (zarr.errors.ContainsGroupError, zarr.errors.ArrayNotFoundError): - # If the array doesn't exist, we re-raise the error when reading ("r", "r+") - # and continue when appendding ("a"). + # If we are reading, this is a genuine error. if mode in ("r", "r+"): raise else: - # If we were able to read the file without error, we handle CPU/GPU mixing. # If we are reading a LZ4-CPU compressed file, we overwrite the # metadata on-the-fly to make Zarr use LZ4-GPU for both compression # and decompression.