Skip to content

Avoid ndarray comparisons with None.#146

Merged
rkern merged 4 commits into
masterfrom
fix/is-none
Sep 24, 2014
Merged

Avoid ndarray comparisons with None.#146
rkern merged 4 commits into
masterfrom
fix/is-none

Conversation

@rkern
Copy link
Copy Markdown
Member

@rkern rkern commented Sep 23, 2014

In future versions of numpy, this will not return False as it currently does.

Fixes #144

@mdickinson
Copy link
Copy Markdown
Member

LGTM. I can't reproduce the Travis CI failure locally, either on this branch or on master.

@mdickinson
Copy link
Copy Markdown
Member

(and it's the same failure as in #138; clearly unrelated).

@rkern
Copy link
Copy Markdown
Member Author

rkern commented Sep 24, 2014

Yeah, it's been failing on that test for the past month.

https://travis-ci.org/enthought/mayavi/builds

I'll take the LGTM for both PRs.

rkern added a commit that referenced this pull request Sep 24, 2014
Avoid ndarray comparisons with None.
@rkern rkern merged commit 42ab8d1 into master Sep 24, 2014
@rkern rkern deleted the fix/is-none branch September 24, 2014 08:38
@GaelVaroquaux
Copy link
Copy Markdown
Contributor

Merged #146.

Thank you Robert!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

has_traits.py:1536: FutureWarning: comparison to None

3 participants