-
Notifications
You must be signed in to change notification settings - Fork 89
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
C++ refactoring: ak.cartesian, ak.argcartesian #1317
Conversation
Codecov Report
|
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.
Everything here looks great, including the very complicated cartesian
function.
I noticed that argcartesian
is excluding negative axis
; I don't see a reason for that, so I'm removing that restriction and adding a test. Once that passes, I'll merge this.
Thanks!
if axis < 0: | ||
raise ValueError("the 'axis' of argcartesian must be non-negative") |
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 see no reason why the axis
can't be negative. It's like that in v1, also:
I'm guessing it's an artifact from a very early time. Anyway, I just committed this fix and added a test, so this PR will relax that constraint.
No description provided.