-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix DataArray.__dask_scheduler__ to point to dask.threaded.get #1760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.rst
for all changes andapi.rst
for 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)