Skip to content

BloscCodec is broken #3427

@d-v-b

Description

@d-v-b

We need to fix the following behavior of the BloscCodec:

# /// script
# requires-python = ">=3.11"
# dependencies = [
#   "zarr@git+https://github.com/zarr-developers/zarr-python.git@main",
# ]
# ///
#
# This script automatically imports the development branch of zarr to check for issues

from zarr.codecs import BloscCodec
b = BloscCodec()
b.to_dict()
# ValueError: `typesize` needs to be set for serialization.

This means picking usable defaults instead of creating a completely broken object.

Unfortunately I am not sure how to gracefully fix this, since we have load-bearing internal code that relies on certain BloscCodec fields being set to None.

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