Skip to content
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

BUG: Floating exception with invalid axis in np.lexsort #7529

Merged
merged 1 commit into from
Apr 8, 2016

Conversation

simongibbons
Copy link
Contributor

When an invalid axis was passed into PyArray_LexSort it
would attempt to create a set of iterators to ignore that
axis before checking to see if the axis was valid. This
would cause a floating exception as the dimension of
the invalid axis would on occasion return zero.

This fixes that by moving the axis check to before the
iterator creation.

Fixes #7528

When an invalid axis was passed into PyArray_LexSort it
would attempt to create a set of iterators to ignore that
axis before checking to see if the axis was valid. This
would cause a floating exception as the dimension of
the invalid axis would on occasion return zero.

This fixes that by moving the axis to before the iterator
creation.

Fixes numpy#7528
@charris
Copy link
Member

charris commented Apr 8, 2016

LGTM, thanks @simongibbons .

@charris charris merged commit 0b2e590 into numpy:master Apr 8, 2016
@simongibbons simongibbons deleted the lexsort_fix branch April 8, 2016 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Floating exception with np.lexsort
2 participants