-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
fix file modes #2000
fix file modes #2000
Conversation
Thanks @brokkoli71 for picking this up. What is the expected behavior of |
good point, according to the docstrings: |
I agree that a method for clearing a store is a good idea. Just bear in mind that this can be a performance bottleneck when deleting arrays with a lot of chunks, especially on remote storage. We should think about performance at some point. |
I was wondering, if supporting |
There's a lot of usage for Don't worry too much about the performance concerns with bulk deletion for now. We should make the API convenient, then worry about performance later. I only brought delete performance up because it's something that zarr python v2 didn't deal with, which caused me some headaches. |
# Conflicts: # src/zarr/store/remote.py
This reverts commit 5f876d2.
# Conflicts: # tests/v3/conftest.py # tests/v3/test_codecs.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is looking great! Just a few final comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last comment and a suggestion on ensure_open
that you can take or leave. Thanks again for pushing on this.
Co-authored-by: Joe Hamman <[email protected]>
@brokkoli71 - happy to merge this if you can resolve the conflicts. |
# Conflicts: # src/zarr/store/remote.py
Sadly still conflicting, @brokkoli71 |
# Conflicts: # src/zarr/store/core.py # tests/v3/test_store/test_memory.py
fixes #1978
according to docstrings of
zarr.open
the modes should do:this PR implements and tests this behavior, so #1978 gets fixed