diff options
author | Joseph Fox-Rabinovitz <joseph.r.fox-rabinovitz@nasa.gov> | 2016-02-03 15:48:07 -0500 |
---|---|---|
committer | Joseph Fox-Rabinovitz <joseph.r.fox-rabinovitz@nasa.gov> | 2016-02-05 14:34:55 -0500 |
commit | e30d80266d476841e51d36432d1640f278a5fa05 (patch) | |
tree | b068c5b07f1c0a53932b61cf0e5007a1218f7ad7 /numpy/polynomial/polyutils.py | |
parent | 12ec338c23f3db1e155661fdbf098a546e48dc1e (diff) | |
download | numpy-e30d80266d476841e51d36432d1640f278a5fa05.tar.gz |
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.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions