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
Added isindex function. #32
Conversation
The tests are failing on master and are unrelated. |
It should also include the base index types. For integer indices the most correct thing is to check if |
By "base" I mean built-in, like tuple, slice, int, etc., as well as valid index numpy arrays (is it possible numpy already has such a function?). |
Sorry it took me so long, let me know if this is enough. |
This looks good to me. CC @asmeurer |
It looks like there are some conflicts here now |
ndindex/ndindex.py
Outdated
if exclude and ((int in exclude) or (Integer in exclude)): | ||
return False | ||
else: | ||
return True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like this if-statement doesn't need to be in the try-block
Closing this as I assume it's not relevant anymore, cheers! |
Please check if this is the right format for the "exclude" flag.
Closes #30