-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add read only ZipStore #123
Conversation
Co-authored-by: Steve Kelly <[email protected]>
Pull Request Test Coverage Report for Build 5558541626Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
for subdir in subdirs(s, p) | ||
_writezip(w, s, _make_prefix(p)*subdir) | ||
end | ||
end |
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 a very nice interface idea to produce zip stores.
@@ -145,5 +216,35 @@ end | |||
@test g2.attrs == Dict("groupatt"=>5) | |||
@test g2["a1"].attrs == Dict("arratt"=>2.5) | |||
@test g2["a1"][:,:] == reshape(1:200,10,20) | |||
|
|||
# The following test doesn't pass, but maybe should? |
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.
Ok, I will check this later. Maybe we could make a broken test from it, let's see
Thanks a lot and sorry for missing this for such a long time. |
This PR adds a new
ZipStore <: AbstractStore
andwritezip
function.With these, zipped Zarr data can be written to any writeable
IO
and read from anyAbstractVector{UInt8}
This should be compatible with https://zarr.readthedocs.io/en/stable/api/storage.html#zarr.storage.ZipStore
Because zip files can behave differently when their size is over 4GB, this still needs to be tested with zarr-python for very large datasets.