scikit-hep / awkward-0.x

Manipulate arrays of complex data structures as easily as Numpy.
BSD 3-Clause "New" or "Revised" License
215 stars 39 forks source link

Issue 176 #177

Closed jpivarski closed 5 years ago

jpivarski commented 5 years ago

The starts and stops of the output of _argminmax would ordinarily be aliased, so changing stops changes starts. That's undesirable if there are any subarrays with a repeated maximum (e.g. issue #176).

This is correcting a correction by @nsmith- in PR #160 (specifically, these changes). I don't know the original case that made a simple [:, :1] ineffective, but the correction should now be completely general.