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

GitHub noreply at github.com
Fri Apr 8 13:38:59 EDT 2016


  Branch: refs/heads/maintenance/1.11.x
  Home:   https://github.com/numpy/numpy
  Commit: 5bcc51d379a1a225c49791a22e4ccc1592976b00
      https://github.com/numpy/numpy/commit/5bcc51d379a1a225c49791a22e4ccc1592976b00
  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: bea5883d837599b8f10acc8c51bccae247cd9feb
      https://github.com/numpy/numpy/commit/bea5883d837599b8f10acc8c51bccae247cd9feb
  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 #7530 from charris/backport-7529

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


Compare: https://github.com/numpy/numpy/compare/d51f874f7c30...bea5883d8375


More information about the Numpy-svn mailing list