Skip to content

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

Merged
charris merged 1 commit into
numpy:maintenance/1.11.xfrom
charris:backport-7180
Feb 7, 2016
Merged

Backport 7180, BUG: Fixed previous attempt to fix dimension mismatch in nanpercentile#7205
charris merged 1 commit into
numpy:maintenance/1.11.xfrom
charris:backport-7180

Conversation

@charris

@charris charris commented Feb 7, 2016

Copy link
Copy Markdown
Member

#7180

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.

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.
@charris charris added this to the 1.11.0 release milestone Feb 7, 2016
charris added a commit that referenced this pull request Feb 7, 2016
Backport 7180, BUG: Fixed previous attempt to fix dimension mismatch in nanpercentile
@charris
charris merged commit 62b3b0e into numpy:maintenance/1.11.x Feb 7, 2016
@charris
charris deleted the backport-7180 branch February 7, 2016 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants