-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
More extensive orthogonal indexing in get/setitem #1333
More extensive orthogonal indexing in get/setitem #1333
Conversation
cc @jni (in case this is of interest 🙂) |
Codecov Report
@@ Coverage Diff @@
## main #1333 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 36 36
Lines 14775 14802 +27
=========================================
+ Hits 14775 14802 +27
|
503e934
to
d5fb5ce
Compare
Added pass-through to orthogonal indexing for the following cases: * index is iterable of integers * index is iterable of length ndim, with each element being a slice, integer, or list. Maximum one list.
d5fb5ce
to
1667199
Compare
Agreed, I think @jni will be happy to see someone taking up the mantle! |
Thanks @jakirkham , @joshmoore. Please let me know if anything else is needed from my side. I figure I will resolve the conflicts after code review, so I can do it in one go rather than piecemeal. |
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.
Brilliant stuff @AndreasAlbertQC! I have to admit I don't know the numpy rules in enough detail to properly grok all the case 2 conditions, but the tests test all of the questions I might have thoroughly so I'm happy with this. Major usability win. 😊
Thanks, @jni! Fixed the releases.rst conflict. Will start prepping for 2.15.x. |
Thank you! |
Addresses #1029
Added getitem/setitem pass-through to orthogonal indexing for the following cases:
TODO:
and/or doctests in docstringsAdd docstrings and API docs for any new/modified user-facing classes and functions