Skip to content

Public API for determining if an array is sharded #4036

@maxrjones

Description

@maxrjones

Describe the new feature you'd like

Similar to #4035, it would simplify downstream use-cases to have a clear method that indicates if an array uses sharding.

Currently, one can use .shards is not None for regular chunk grids, but must use a try/except for sharded + rectilinear grids since the return type of .shards cannot express rectilinear grids.

See https://hackmd.io/p9pU24IQR6uA9tg6c0wMhw for a full evaluation of the API surface (generated by claude).

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