Skip to content

Re-reading from a consolidated store #1573

Answered by ilan-gold
ilan-gold asked this question in Q&A
Discussion options

You must be logged in to vote

For anyone interested, the answer is to do the following:

foo_from_store_consolidated = zarr.open(store=g_consolidated['foo'].store, path='foo', chunk_store=g_consolidated.chunk_store)
foo_from_store_consolidated[...] # correct, arange-d

I don't think this is a bug, but I wonder if the behavior should be clarified in that you can't actually read chunks from a consolidated metadata store: https://zarr.readthedocs.io/en/stable/api/storage.html#zarr.storage.ConsolidatedMetadataStore.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ilan-gold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant