Skip to content
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

Suppress warnings from Tox output #788

Merged
merged 2 commits into from
Jan 14, 2020
Merged

Suppress warnings from Tox output #788

merged 2 commits into from
Jan 14, 2020

Conversation

wizmer
Copy link
Contributor

@wizmer wizmer commented Jan 3, 2020

No description provided.

neurom/io/neurolucida.py Show resolved Hide resolved
nt.ok_(np.isinf(_sf.section_tortuosity(sec)))

# is not NaN
nt.ok_(not math.isnan(_sf.section_tortuosity(sec)))
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it ok to drop NaN tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This function was testing _sf.section_tortuosity(sec) against various types of NaN and inf, but since the returned value is np.inf, I feel it was more testing Numpy than NeuroM

@wizmer wizmer merged commit 9162f14 into BlueBrain:master Jan 14, 2020
@wizmer wizmer deleted the fix-warnings branch January 14, 2020 12:33
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