Relocatable store support
See original GitHub issueAlthough zarr supports pickling, currently unpickling fails if the underlying store changes, e.g when moving the directory of a DirectoryStore
or the file of a ZipStore
. As mentioned in the docs:
The only thing that is pickled is the necessary parameters to allow the store to re-open any underlying files or databases upon being unpickled.
How can I add support for unpickling from a different store than the one used for pickling?
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (16 by maintainers)
Top Results From Across the Web
Relocatable store with $ORIGIN? - NixOS Discourse
In order to support a relocatable store (chroot stores aren't always of interest or possible), we would need to replace paths such as ......
Read more >Mass Relocatable Self Storage Units from Janus International
MASS relocatable self storage units are portable storage units that can be classified as equipment and help bypass permitting processes.
Read more >Relocatable Mobile Storage Units - Miller Building Systems
Miller Building Systems provides relocatable storage and buildings in a variety of sizes and colors.
Read more >Relocatable Storage Units - DBCI
REQUEST A QUOTE. Have questions about DBCI's products or services? Let us help. request a quote now.
Read more >STOREMASTA® Relocatable Toxic Substance Store
Installation: The relocatable container must be mounted on suitable footings. It must be sitting level and supported under each base plate. If your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FWIW I thought of using zarr’s hierarchy capability here because it seemed quite close to what you were already building but via some Python data structures, esp. nested dictionaries. But it’s not quite the same because you’re using both dicts and lists, so appreciate it’s not a direct swap-in replacement.
Also FWIW zarr’s hierarchy (group) API is intended to match h5py, so it’s not entirely zarr-specific. I.e., if you use the group API then it will be familiar to anyone who has used HDF5-like data structures before.
Also FWIW, it sounds like you’re putting all the arrays inside a single ZipStore. If you are, then you will be having to decide a path for each array, which will be creating some hierarchical (grouping) structure that I’m guessing mirrors closely the Python nested dicts and lists data structure you’re using. So maybe there is an opportunity to just simplify and leverage the grouping structure within the zarr hierarchy, rather than duplicating grouping information into Python objects as well. But maybe it’s not that straightforward.
In any case, I’m still planning to look at the updated PR and will give it some more thought.
Thanks @gsakkis, I must have been looking at an earlier commit, I’ll take another look asap.