Skip to content

Use safe_wraps for wrapping isin() - #3391

Merged
jakirkham merged 2 commits into
masterfrom
safe_wraps
Apr 16, 2018
Merged

jakirkham merged 2 commits into
masterfrom
safe_wraps

Conversation

@shoyer

@shoyer shoyer commented Apr 10, 2018

Copy link
Copy Markdown
Member

Fixes #3388

  • Tests added / passed
  • Passes flake8 dask

@shoyer

shoyer commented Apr 11, 2018

Copy link
Copy Markdown
Member Author

Oops, I accidentally pushed this as a new branch to dask rather than my fork. Interestingly CI passed on my branch but not the pull-request...

@shoyer
shoyer requested a review from jakirkham April 11, 2018 22:28
Comment thread dask/array/routines.py Outdated
if all(hasattr(wrapped, attr) for attr in assigned):
return wraps(wrapped, assigned=assigned)
else:
return lambda x: x

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any thoughts on moving this to a utils or similar module?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done

@jakirkham

Copy link
Copy Markdown
Member

Sorry for the delay (was at a conference last week). Looks fine to me. Asked one question above.

@jakirkham
jakirkham merged commit 9f50838 into master Apr 16, 2018
@jakirkham
jakirkham deleted the safe_wraps branch April 16, 2018 23:34
@jakirkham

Copy link
Copy Markdown
Member

Thanks @shoyer. :)

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.

2 participants