-
Notifications
You must be signed in to change notification settings - Fork 7
Description
From documentation:
By default, ZarrIO uses the numcodecs.pickles.Pickle codec to encode object references defined as py:class:~hdmf_zarr.utils.ZarrReference dicts in datasets. Users may set the codec used to encode objects in Zarr datasets via the object_codec_class parameter of the init() constructor of ZarrIO. E.g., we could use ZarrIO( ... , object_codec_class=numcodecs.JSON) to serialize objects using JSON.
I am working on adding read support for Zarr files in MatNWB. It seems to me that using the numcodecs.pickles.Pickle codec for storing hdmf_zarr.utils.ZarrReference
objects adds extra hurdles for reading zarr files with other languages than Python.
I wonder if it would be better to use numcodecs.JSON by default, and maybe even remove the option to set a codec via parameter?