[Numpy-svn] [numpy/numpy] c2ec81: BUG: Floating exception with invalid axis in np.le...

GitHub noreply at github.com
Fri Apr 8 12:08:01 EDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: c2ec8187b4d53d125d00b96b9891ff3c9da7e823
      https://github.com/numpy/numpy/commit/c2ec8187b4d53d125d00b96b9891ff3c9da7e823
  Author: Simon Gibbons <simongibbons at gmail.com>
  Date:   2016-04-08 (Fri, 08 Apr 2016)

  Changed paths:
    M numpy/core/src/multiarray/item_selection.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  BUG: Floating exception with invalid axis in np.lexsort

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 #7528


  Commit: 0b2e590ec18942f8f149ab2306b80da86b04eaeb
      https://github.com/numpy/numpy/commit/0b2e590ec18942f8f149ab2306b80da86b04eaeb
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2016-04-08 (Fri, 08 Apr 2016)

  Changed paths:
    M numpy/core/src/multiarray/item_selection.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Merge pull request #7529 from simongibbons/lexsort_fix

BUG: Floating exception with invalid axis in np.lexsort


Compare: https://github.com/numpy/numpy/compare/71575f1e0167...0b2e590ec189


More information about the Numpy-svn mailing list