Skip to content

BUG: Fix MaskedArray.__setitem__ - #8648

Merged
mhvk merged 1 commit into
numpy:maintenance/1.12.xfrom
eric-wieser:MaskedArray.__setitem__
Feb 20, 2017
Merged

mhvk merged 1 commit into
numpy:maintenance/1.12.xfrom
eric-wieser:MaskedArray.__setitem__

Conversation

@eric-wieser

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

Copy link
Copy Markdown
Member

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