Skip to content

BUG: Fix MaskedArray.__setitem__ #8648

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

Merged
merged 1 commit into from
Feb 20, 2017

Conversation

eric-wieser
Copy link
Member

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

Backport of #8594.

Fixes #8510.

The root cause here is that np.ma.getdata does a conversion to np.ndarray that we don't want to happen.

This conversion in general is a bad idea, because when delegating to base numpy functions, it doesn't allow that function to do the correct conversion with extra information.

@eric-wieser eric-wieser added the 08 - Backport Used to tag backport PRs label Feb 20, 2017
@eric-wieser eric-wieser added the component: numpy.ma masked arrays label Feb 20, 2017
@eric-wieser eric-wieser added this to the 1.12.1 release milestone Feb 20, 2017
@mhvk mhvk merged commit 9a8e829 into numpy:maintenance/1.12.x Feb 20, 2017
@eric-wieser eric-wieser deleted the MaskedArray.__setitem__ branch February 20, 2017 20:44
@charris charris changed the title Backport 8594 Backport 8594: BUG: Fix MaskedArray.__setitem__ Feb 20, 2017
@charris charris changed the title Backport 8594: BUG: Fix MaskedArray.__setitem__ BUG: Fix MaskedArray.__setitem__ Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants