-
-
Notifications
You must be signed in to change notification settings - Fork 329
Read only array default upon opening #809
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
Comments
Hi @camFoltz. I don't know of a zarr-specific mechanism for recording the read-only setting. As a workaround, have you looked at making it read-only at the underlying storage level? |
Hi @joshmoore , thanks for the response. If zarr has no specific mechanism then we will move to dealing with it at the permission level. |
While there isn't (and probably shouldn't be, for simplicity purposes) a mechanism for storing the default access mode on individual containers/ groups/ arrays, would changing the global default mode to |
@clbarnes : nods and I seem to remember a store ( Edit: #546 (comment) |
This issue may be fixed by #916 |
For bug reports, please follow the template below. For enhancement proposals, feel free
to use whatever template makes sense (major new features should be discussed in the
Zarr specifications repository https://github.com/zarr-developers/zarr-specs).
Minimal, reproducible code sample, a copy-pastable example if possible
Problem description
I am trying to create a zarr store containing an array that is by default read_only. We are moving our raw microscopy data to zarr format and we do not want the user to be able to easily edit the zarr arrays. The default
zarr.open(mode='a')
overrides any sort of read_only setting put onto the array during creation. This is troublesome because some of our users will not remember to specifymode='r'
when browsing the raw data.Is there a way to have the zarr store/array be read_only by default upon opening?
Version and installation information
Please provide the following:
zarr.__version__
= 2.8.3numcodecs.__version__
= 0.7.3The text was updated successfully, but these errors were encountered: