Skip to content

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

Merged
ahaldane merged 1 commit intonumpy:masterfrom
eric-wieser:fix-masked-ufunc-shape
Jan 31, 2017
Merged

BUG: Fix loss of dimensionality of np.ma.masked in ufunc#8508
ahaldane merged 1 commit intonumpy:masterfrom
eric-wieser:fix-masked-ufunc-shape

Conversation

@eric-wieser
Copy link
Copy Markdown
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

@eric-wieser eric-wieser force-pushed the fix-masked-ufunc-shape branch from 2e02815 to c1e66e4 Compare January 20, 2017 22:52
def __array_finalize__(self, obj):
return

def __array_wrap__(self, obj):
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants