Skip to content

chunks returns None for quantified array #362

@simonkeys

Description

@simonkeys

DataArray.chunks checks the type of the DataArray.data and sees that it's a pint Quantity rather than a dask array, so it returns None:

xr.DataArray([1,2,3], dims=['x'], attrs={'units': 'm'}).pint.quantify().pint.chunk(1).chunks

None

xarray 2026.1.0, pint-xarray 0.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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