Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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
Aug 13, 2017

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