Skip to content

chunks returns None for quantified array #362

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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