Skip to content
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

Dask async warning #195

Merged
merged 3 commits into from
Jul 28, 2017
Merged

Dask async warning #195

merged 3 commits into from
Jul 28, 2017

Conversation

spencerahill
Copy link
Owner

@spencerahill spencerahill commented Jul 27, 2017

As of dask v0.15, their async module that we reference has been renamed to local. This PR checks the dask version so that we import from the correct place, thereby avoiding a deprecation message about it.

@spencerkclark I don't think this warrants tests, but let me know if you think otherwise.

(Sorry for the accidental incoherent commit message)

aospy/model.py Outdated
@@ -10,8 +10,14 @@
from . import utils

# Dask must use its serial scheduler if computations are to be performed
# in parallel using multiprocess
dask.set_options(get=dask.async.get_sync)
Copy link
Collaborator

@spencerkclark spencerkclark Jul 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spencerahill good catch! It's possible this line may not even be needed anymore now that we use dask.bag for parallel computations. Could you see if the test suite passes with it removed? (In other words we may not need the workaround in this PR).

See this line in #172, where this code was already removed from data_loader.py. Sorry if I missed this there.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spencerkclark you're right! Even better. Thanks for catching that.

Copy link
Collaborator

@spencerkclark spencerkclark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks for taking care of this.

@spencerahill spencerahill merged commit db0d6c0 into develop Jul 28, 2017
@spencerahill spencerahill deleted the dask-async-warning branch July 28, 2017 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants