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

fa2util: fix occasional zerodivisionerror #26

Conversation

victorbenichoux
Copy link
Collaborator

This PR fixes the error raised here

Sometimes the totalEffectiveTraction vanishes which causes ZeroDivisionError, here I check it before dividing.

sometimes the totalEffectiveTraction vanishes which causes ZeroDivisionError
Here I check that it is nonzero before dividing by it
@bhargavchippada bhargavchippada merged commit 4e4ad85 into bhargavchippada:master Jun 15, 2020
@bhargavchippada bhargavchippada self-requested a review June 15, 2020 08:13
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