Unable to assign flox method and quantile method in xarray_reduce
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start at the flox.xarray.xarray_reduce entry point and reproduce the provided example with the quantile function. Trace how the grouping method and quantile method are passed into the call; done means both options can be supplied without the duplicate-keyword TypeError, with coverage for the example's quantile parameters.
Written by the indexing model from the issue text.
Description
Reproducible example:
import xarray as xr
from flox.xarray import xarray_reduce
labels = xr.DataArray(
[1, 2, 3, 1, 2, 3, 0, 0, 0],
dims="x",
name="label",
)
finalize_kwargs = dict(q=[0.1,0.5,0.9], method = "hazen")
da = xr.ones_like(labels)
xarray_reduce(da, labels, func="quantile", method = "blockwise", **finalize_kwargs)
Output:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: flox.xarray.xarray_reduce() got multiple values for keyword argument 'method'
- Dominant language
- Python
- Stars
- 137
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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/flox
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
xarray-contrib/flox#516 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
xarray-contrib/flox#501 ·
-
expr Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
xarray-contrib/flox#482 · 32 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
xarray-contrib/flox#479 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
xarray-contrib/flox#449 ·
All issues in xarray-contrib/flox
Similar issues
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100