Skip to content

Public API for determining chunk grid type #4035

@maxrjones

Description

@maxrjones

Describe the new feature you'd like

It would be helpful to have a method that clearly defines what type of chunk grid an array uses. This would simply downstream use-cases that depend on knowing the chunk grid type (e.g., pydata/xarray#11279).

Right now, one must do: try: chunks / except NotImplementedError or isinstance(array.metadata.chunk_grid, RegularChunkGridMetadata) with imports from zarr.core.metadata.v3

See https://hackmd.io/p9pU24IQR6uA9tg6c0wMhw for a claude generated evaluation of the general user API surface for working with chunks/shards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features or improvements

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions