Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport 8018, BUG: Fixes return for np.ma.count if keepdims is True and axis is None #8020

Merged
merged 1 commit into from Sep 6, 2016

Conversation

charris
Copy link
Member

@charris charris commented Sep 5, 2016

The returned value is wrapped in an integer array of appropriate dimensions
if keepdims is True and axis is None for np.ma.count.

Also included:

  • Whitespace after "," (PEP8)
  • any instead of np.any when checking if any axis is out of bounds (performance)

The returned value is wrapped in an integer array of appropriate dimensions
if keepdims is True and axis is None for np.ma.count.

Also included:

- Whitespace after "," (PEP8)
- any instead of np.any when checking if any axis is out of bounds (performance)
@charris charris added 00 - Bug component: numpy.ma masked arrays 08 - Backport Used to tag backport PRs labels Sep 5, 2016
@charris charris added this to the 1.11.2 release milestone Sep 5, 2016
@charris charris merged commit b863b71 into numpy:maintenance/1.11.x Sep 6, 2016
@charris charris deleted the backport-8018 branch September 6, 2016 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs component: numpy.ma masked arrays
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants