[Numpy-svn] [numpy/numpy] cf3aeb: BUG: Fixed previous attempt to fix dimension misma...

GitHub noreply at github.com
Sun Feb 7 14:01:10 EST 2016


  Branch: refs/heads/maintenance/1.11.x
  Home:   https://github.com/numpy/numpy
  Commit: cf3aeb76328ca99685aaf2fc116831facdbb49ff
      https://github.com/numpy/numpy/commit/cf3aeb76328ca99685aaf2fc116831facdbb49ff
  Author: Joseph Fox-Rabinovitz <joseph.r.fox-rabinovitz at nasa.gov>
  Date:   2016-02-07 (Sun, 07 Feb 2016)

  Changed paths:
    M numpy/lib/nanfunctions.py
    M numpy/lib/tests/test_nanfunctions.py

  Log Message:
  -----------
  BUG: Fixed previous attempt to fix dimension mismatch in nanpercentile

nanpercentile was conforming to dimension convention of percentile incorrectly.
percentile outputs results for the different percentiles along the first
dimension of the output. nanpercentile was moving the reduction axis to the
front using swapaxes, which would move the first axis out of place if there
were more than two in the array. Added a test with more than two axes to
demonstrate and used rollaxis instead of swapaxes to do the interhange.


  Commit: 62b3b0e7917854d70774849e035fdb0c14a0ac80
      https://github.com/numpy/numpy/commit/62b3b0e7917854d70774849e035fdb0c14a0ac80
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2016-02-07 (Sun, 07 Feb 2016)

  Changed paths:
    M numpy/lib/nanfunctions.py
    M numpy/lib/tests/test_nanfunctions.py

  Log Message:
  -----------
  Merge pull request #7205 from charris/backport-7180

Backport 7180, BUG: Fixed previous attempt to fix dimension mismatch in nanpercentile


Compare: https://github.com/numpy/numpy/compare/d74caaa218b5...62b3b0e79178


More information about the Numpy-svn mailing list