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

Added isindex function. #32

Closed
wants to merge 5 commits into from
Closed

Conversation

melissawm
Copy link
Contributor

Please check if this is the right format for the "exclude" flag.

Closes #30

@melissawm melissawm requested a review from asmeurer May 19, 2020 02:48
@melissawm
Copy link
Contributor Author

The tests are failing on master and are unrelated.

ndindex/__init__.py Outdated Show resolved Hide resolved
@asmeurer
Copy link
Member

It should also include the base index types. For integer indices the most correct thing is to check if operator.index raises an exception or not.

@asmeurer
Copy link
Member

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?).

@melissawm
Copy link
Contributor Author

Sorry it took me so long, let me know if this is enough.

@scopatz
Copy link
Contributor

scopatz commented May 31, 2020

This looks good to me. CC @asmeurer

@scopatz scopatz added this to the June 2020 milestone Jun 17, 2020
@scopatz
Copy link
Contributor

scopatz commented Sep 9, 2020

It looks like there are some conflicts here now

if exclude and ((int in exclude) or (Integer in exclude)):
return False
else:
return True
Copy link
Contributor

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

@ericdatakelly ericdatakelly modified the milestones: June 2020, October 2020 Oct 13, 2020
@ericdatakelly ericdatakelly modified the milestones: October 2020, November 2020 Nov 16, 2020
@ericdatakelly ericdatakelly modified the milestones: November 2020, December 2020 Dec 17, 2020
@ericdatakelly ericdatakelly modified the milestones: December 2020, January 2021 Jan 6, 2021
@ericdatakelly ericdatakelly modified the milestones: January 2021, February 2021 Feb 4, 2021
@ericdatakelly ericdatakelly modified the milestones: February 2021, April 2021 Apr 5, 2021
@ericdatakelly ericdatakelly removed this from the April 2021 milestone May 10, 2021
@ericdatakelly ericdatakelly added this to the May 2021 milestone May 10, 2021
@ericdatakelly ericdatakelly removed this from the May 2021 milestone Oct 6, 2021
@ericdatakelly ericdatakelly added this to the October 2021 milestone Nov 1, 2021
@melissawm
Copy link
Contributor Author

Closing this as I assume it's not relevant anymore, cheers!

@melissawm melissawm closed this Mar 7, 2023
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.

isindex function
4 participants