Skip to content

Fix errors when running with python 2.7.14#3

Open
AzP wants to merge 1 commit intoRaySearchLabsPublic:masterfrom
AzP:master
Open

Fix errors when running with python 2.7.14#3
AzP wants to merge 1 commit intoRaySearchLabsPublic:masterfrom
AzP:master

Conversation

@AzP
Copy link
Copy Markdown

@AzP AzP commented Dec 14, 2017

If updating Anaconda, the script fails with warnings about "ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"

There might be a better way of fixing this, I wasn't sure about calling .any on None.

Copy link
Copy Markdown

@ryanneph ryanneph left a comment

Choose a reason for hiding this comment

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

@AzP I would be more inclined to replace the tests for "None" with if <obj> is None: since the current test will fail if the object is indeed None (since .all() is not a method defined on None types). Take a look at my commit for the changes. I'm not aware of any way to directly suggest the changes into this PR.

@AzP
Copy link
Copy Markdown
Author

AzP commented May 30, 2018

@ryanneph I agree that your fix(es) are better, could you open a PR for your commit as well?

@ryanneph
Copy link
Copy Markdown

ryanneph commented Jun 5, 2018

@AzP I opened a PR (#5) with the changes.

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.

2 participants