Repository navigation
Fix DataArray.__dask_scheduler__ to point to dask.threaded.get - #1760
Conversation
|
The mock tests still fail for me. I'm not sure how best to generalize them. Recommendations would be welcome here. |
|
I took a look at the tests - I don't have too much helpful beyond breaking it down. For example, this tests that when Has that changed? Does |
No, we no longer call |
|
Right, though xarray used to call |
|
@shoyer how would you like me to proceed here? Should I drop the current modifications to the |
That's probably easiest for now -- updating our mock tests to handle either calling It would be nice to add a test case that uses the default scheduler, e.g., that does a basic compute on each xarray type (Dataset, DataArray and Variable) inside a (It would probably be better to explicitly set |
c054314 to
9f0b534
Compare
9f0b534 to
1a9399c
Compare
|
Done. Tests pass. |
|
Thanks! |
Previously this erroneously pointed to an optimize function, likely a
copy-paste error.
For testing this also redirects the .compute methods to use the
dask.compute function directly if dask.version >= '0.16.0'.
Closes #1759
git diff upstream/master **/*py | flake8 --diff(remove if you did not edit any Python files)whats-new.rstfor all changes andapi.rstfor new API (remove if this change should not be visible to users, e.g., if it is an internal clean-up, or if this is part of a larger project that will be documented later)