issues: 483280810
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
483280810 | MDU6SXNzdWU0ODMyODA4MTA= | 3237 | ``argmax()`` causes dask to compute | 13190237 | closed | 0 | 4 | 2019-08-21T08:41:20Z | 2019-09-06T23:15:19Z | 2019-09-06T23:15:19Z | CONTRIBUTOR | Problem DescriptionWhile digging for #2511 I found that MCVE Code Sample```python
In [1]: import numpy as np In [2]: class Scheduler: In [3]: scheduler = Scheduler() In [4]: with dask.config.set(scheduler=scheduler): RuntimeError Traceback (most recent call last) ~/src/xarray/xarray/core/common.py in wrapped_func(self, dim, axis, skipna, kwargs) ~/src/xarray/xarray/core/dataarray.py in reduce(self, func, dim, axis, keep_attrs, keepdims, kwargs) ~/src/xarray/xarray/core/variable.py in reduce(self, func, dim, axis, keep_attrs, keepdims, allow_lazy, kwargs) ~/src/xarray/xarray/core/duck_array_ops.py in f(values, axis, skipna, kwargs) ~/src/xarray/xarray/core/nanops.py in nanargmax(a, axis) /usr/lib/python3.7/site-packages/dask/array/core.py in bool(self) /usr/lib/python3.7/site-packages/dask/base.py in compute(self, kwargs) /usr/lib/python3.7/site-packages/dask/base.py in compute(args, kwargs) Expected OutputNone of the methods should actually compute:
``` python
Total number of computes: 0 Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3237/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |