Skip to content

Comments

BUG: MaskedArray _optinfo dictionary is not updated when calling __eq__/__ne__#9540

Merged
eric-wieser merged 1 commit intonumpy:masterfrom
schaefed:ma-optinfo
Aug 13, 2017
Merged

BUG: MaskedArray _optinfo dictionary is not updated when calling __eq__/__ne__#9540
eric-wieser merged 1 commit intonumpy:masterfrom
schaefed:ma-optinfo

Conversation

@schaefed
Copy link
Contributor

Replaces PR #9279. In order to follow the contribution guidelines (I think) I had to open a new one...

assert_equal(a._optinfo["key"], array(a, copy=True)._optinfo["key"])
assert_equal(a._optinfo["key"], np.zeros_like(a)._optinfo["key"])


Copy link
Member

Choose a reason for hiding this comment

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

Should only be one line between methods - I don't think we make an exception for tests?

Copy link
Member

Choose a reason for hiding this comment

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

We don't, although I expect violations slip by. Might as well get it right in the first place.

Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

One minor style nit, but fix looks fine, and tests are thorough

@schaefed
Copy link
Contributor Author

I removed the excessive empty lines

@eric-wieser eric-wieser merged commit 7554558 into numpy:master Aug 13, 2017
@eric-wieser
Copy link
Member

Thanks @schaefed!

Try to use the BUG: prefix on the commit message itself in future, not just the PR name - not a big deal here though - i just did a squash and merge

@schaefed schaefed deleted the ma-optinfo branch August 13, 2017 22:25
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