Repository navigation
MAINT: Simplify _leading_trailing - #10130
Merged
Merged
Conversation
eric-wieser
commented
Nov 30, 2017
Member
Author
There was a problem hiding this comment.
This is a bug (it ignored the kwarg to array2string), but I want to leave that to another PR
Contributor
There was a problem hiding this comment.
probably good to put up a separate issue for it (if you haven't done so already) or link to a PR. (I'm only arguing from knowing my state of memory -- I'd forget...)
mhvk
reviewed
Nov 30, 2017
Contributor
There was a problem hiding this comment.
That , at the end really threw me of: I'd either use np.index_exp[:edgeitems] (which always returns a tuple), or go for the, for me, more natural (slice(None, edgeitems),)
Member
Author
There was a problem hiding this comment.
s_ is slightly faster, but I guess we don't care. I'll switch to index_exp
Removes the list comprehensions in favor of numpy primitives. Now recurses over the indices, not the values.
eric-wieser
force-pushed
the
tidy-_leading_trailing
branch
from
November 30, 2017 16:51
6d01587 to
e94500b
Compare
Contributor
|
OK, tests passed and approved twice, so merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the list comprehensions in favor of numpy primitives.
Now recurses over the indices, not the values.
Split from #10123.