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

BUG: Fix loss of dimensionality of np.ma.masked in ufunc #8508

Merged
merged 1 commit into from
Jan 31, 2017

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Jan 20, 2017

Fixes #8505. Previously, the result of invoking ufuncs on a MaskedConstant would always be np.ma.masked, which wasn't always of the correct shape

@@ -6130,8 +6130,11 @@ def __new__(self):
def __array_finalize__(self, obj):
return

def __array_wrap__(self, obj):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised this didn't error already when something tried to pass it a context

@ahaldane
Copy link
Member

Looks absolutely correct to me, and it's surprising the old behavior didn't cause problems before.

Code and commits look nice and clean, I'll merge in a little bit.

@ahaldane
Copy link
Member

Merging, thanks @eric-wieser

@ahaldane ahaldane merged commit ddb12e3 into numpy:master Jan 31, 2017
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.

None yet

3 participants