chunks returns None for quantified array
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start with the documented DataArray.chunks behavior and reproduce the quantified-array example using pint.quantify() and pint.chunk(1). Trace how the pint accessor wraps the underlying data and determine why chunks becomes None. Done means the example reports its dask chunking consistently, with a regression test covering quantified arrays.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Python
- Stars
- 119
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from xarray-contrib/pint-xarray
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
xarray-contrib/pint-xarray#361 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
xarray-contrib/pint-xarray#303 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
xarray-contrib/pint-xarray#271 · 7 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
xarray-contrib/pint-xarray#269 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
xarray-contrib/pint-xarray#268 ·
All issues in xarray-contrib/pint-xarray
Similar issues
-
namespace operations
Difficulty 1/5 Under an hour Newbie friendliness 72/100
EclipseFdn/open-vsx.org#13737 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
zhuima/awesome-cloudflare#237 ·
-
Zero-token evaluations are treated as missing cost in selectionPossibly taken @sylvesterkaczmarek claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
google-research/rrsi#6 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
aws-samples/sample-aws-genai-db-modernizer#294 ·
Maintainers usually reply within 1 day
-
feedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
githubnext/gh-aw-workshop#4174 ·
Maintainers usually reply within 1 day