Skip to content

Discussion: Change default codec for hdmf_zarr_utils.ZarrReference #285

@ehennestad

Description

@ehennestad

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions