You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, I thought the Python 3, NumPy 1.12 and NumPy 1.10 CI combinations were sufficient to rule out this sort of issue, but guess not. Easily fixable though. So wouldn't stress about it.
That's probably ok. It's a little confusing based on the return type, but expect users can figure this out. Also it is no worse than many of the other docstrings using this same strategy.
Ultimately we should discuss how to fix the docstrings to be clearer at some point, but the discussion need not happen now in this issue. Just should happen eventually with this just highlighting another pain point.
That's right. Forgot we were already using in1d. Edited the list in my original comment accordingly.
Activity
jakirkham commentedon Apr 10, 2018
Interesting, thanks for the info. Also cc @shoyer.
jakirkham commentedon Apr 10, 2018
This reminds of a more general discussion about how we document API ( #3265 ) that we should have at some point. ;)
As to the particular problem, we have a few options. None particularly difficult (some are easier though).
isinfor versions of NumPy that have it.isinimplementation and use it.Implementcopy/rewrite the docstring from NumPy.isinwithin1d+reshapeandwraps(combined with part of 3).Thoughts?
shoyer commentedon Apr 10, 2018
Oops. I thought all we would miss here is the docstring on old versions of NumPy, but it looks like that causes a crash at import time :(.
@wraps(getattr(np, 'isin', np.1nd))would probably be an adequate work-around for now.I didn't bother to vender a copy of numpy's
isinbecause it was just as easy to write dask'sisinin terms ofnp.in1d.jakirkham commentedon Apr 10, 2018
Yeah, I thought the Python 3, NumPy 1.12 and NumPy 1.10 CI combinations were sufficient to rule out this sort of issue, but guess not. Easily fixable though. So wouldn't stress about it.
That's probably ok. It's a little confusing based on the return type, but expect users can figure this out. Also it is no worse than many of the other docstrings using this same strategy.
Ultimately we should discuss how to fix the docstrings to be clearer at some point, but the discussion need not happen now in this issue. Just should happen eventually with this just highlighting another pain point.
That's right. Forgot we were already using
in1d. Edited the list in my original comment accordingly.Avoid using wraps in dask_array_compat
Avoid using wraps in dask_array_compat (#2053)