question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Relocatable store support

See original GitHub issue

Although 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:open
  • Created 3 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
alimanfoocommented, Apr 2, 2020

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.

1reaction
alimanfoocommented, Mar 31, 2020

Thanks @gsakkis, I must have been looking at an earlier commit, I’ll take another look asap.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found