-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mode 'r+' no longer fails if store doesn't exist with open_array
#2491
Comments
I am more and more certain that we should move away from functions with ambiguous semantics like |
Thanks for looking at this @d-v-b! The semantics I want are 1) write the metadata for a new Zarr array, followed by 2) write chunks to the array in parallel from multiple processes. I've been using mode "w-" for 1 (write, fail if exists), and "r+" for 2 (read or write, fail if doesn't exist). |
@tomwhite this should be fixed, but feel free to re-open if I missed something |
Thanks for fixing this @d-v-b! |
Zarr version
v3.0.0-beta.2
Numcodecs version
0.14.0
Python Version
3.11
Operating System
Mac
Installation
pip
Description
Mode
r+
does not fail properly when the store doesn't exist, and will try to create the array when callingopen_array
. In the api doc for open it is defined as "means read/write (must exist)". This is a regression and was introduced in #2442.Steps to reproduce
This should fail with a
FileNotFoundError
and not try to create the store if it doesn't exist.Additional output
No response
The text was updated successfully, but these errors were encountered: