-
-
Notifications
You must be signed in to change notification settings - Fork 131
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 multi-axis advanced indexing support #343
Conversation
Thanks! This is missing some tests, those are pretty much essential. |
It seems like the only failed test is test_slicing_errors(index). What's the protocol for modifying the test cases? Would you be able to handle this? |
That's because the test was "testing" if we didn't have advanced indexing at all. You can get rid of the bad tests. |
The contributor usually adds tests, and the maintainer/reviewer reviews the code and tests. |
Alright, I'll add a few test cases to test_slicing(index) + remove test_slicing_error and submit a new PR |
Oh, you can just push to your branch and it'll modify this PR. Don't need to close at all. |
Bug found in returned coordinates. Will attempt to fix tomorrow |
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.
I think you need to add back the tests. It seems the previous tests only had 1D advanced indexing... That's okay, but we need a reasonable error message for not 1D that checks for an error.
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.
The rest of the failures can be fixed by running pip install black
and then black .
.
Codecov Report
@@ Coverage Diff @@
## master #343 +/- ##
==========================================
- Coverage 94.11% 94.07% -0.05%
==========================================
Files 19 19
Lines 2379 2395 +16
==========================================
+ Hits 2239 2253 +14
- Misses 140 142 +2 |
Thanks, @mikeymezher! |
Added support for multi-axis advanced indexing. Speed is comparable to single axis advanced indexing.