-
-
Notifications
You must be signed in to change notification settings - Fork 365
Description
Hey guys, just a heads up that the chunk_store object resulted from calling the chunk_store() method on a Zarr array changes type for objects (Zarr arrays) created from loading files with fsspec after zarr=2.13.3, ie after PR #1304 was merged:
- with 2.13.3 my
chunk_store(see below for reproducible code) isKVStore: <fsspec.mapping.FSMap object at 0x7feba08afee0> at 0x7feba08aff40> - with 2.13.6 same
chunk_storeobject is<zarr.storage.FSStore object at 0x7fd3ea52bf40>
This causes issues when one wants to call properties of the KVStore object like _mutable_mapping - if this is intended please provide both a mention in the release notes (as a breaking change) and a solution how to still be able to use _mutable_mapping, if it's a bug - then you know what to do π πΊ
Here's my minimal code - like super minimal π - and kudos to Zarr for preserving structure in such a Null case
import fsspec
import zarr
def open_zarr_group():
url = fsspec.filesystem("reference", fo="test.json")
mapper = url.get_mapper("")
zarr_group = zarr.open_group(mapper)
print(zarr_group)
print(zarr_group.chunk_store)
if __name__ == '__main__':
open_zarr_group()where test.json can be an empty JSON file eg {}
Let me know what I can do to help BTW, and many thanks for all your good work! π»