-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
remove get_value_box since it is redundant with libindex.get_value_at #18371
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
Conversation
pls asv indexing (shouldn't be an issue, but just check). |
Turns out get_value_box is necessary because it raises |
Codecov Report
@@ Coverage Diff @@
## master #18371 +/- ##
==========================================
- Coverage 91.38% 91.36% -0.03%
==========================================
Files 164 164
Lines 49790 49799 +9
==========================================
- Hits 45501 45499 -2
- Misses 4289 4300 +11
Continue to review full report at Codecov.
|
@@ -47,6 +47,31 @@ def get_value_at(ndarray arr, object loc): | |||
return util.get_value_at(arr, loc) | |||
|
|||
|
|||
cpdef object get_value_box(ndarray arr, object loc): | |||
cdef: |
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.
if you can add a doc string at some point
thanks! |
@jbrockmendel a general comment: can you use the 'CLN: ' tag in PR titles / commits for PRs that are purely cleaning things up? (so no bug, enhancement or performance related aspect) |
tslib.get_value_box
is effectively identical toindex.get_value_at
(figuring this out requires looking atutil.get_value_at
). Since the only use ofget_value_box
is incore.index.base
, just get rid of it and uselibindex.get_value_at
there instead.Fixup type declarations in
util.get_value_at
.git diff upstream/master -u -- "*.py" | flake8 --diff