-
Notifications
You must be signed in to change notification settings - Fork 272
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
Fix hillas width 0, fixes #772 #1240
Conversation
Ah, dam. It only build the second commit on travis. I wanted to show that the first one fails and the fix makes it pass. |
Fixes #772 |
Codecov Report
@@ Coverage Diff @@
## master #1240 +/- ##
==========================================
+ Coverage 86.47% 86.57% +0.10%
==========================================
Files 185 185
Lines 11591 11626 +35
==========================================
+ Hits 10023 10065 +42
+ Misses 1568 1561 -7
Continue to review full report at Codecov.
|
Sorry @kosack, one more time. We do indeed want to test for exact equality here and I also fixed the random seed. |
Hi @maxnoe |
By rounding values very close to zero to exact zero, nan values are avoided.
These happend due to floating point imprecisions resulting in covariances like
-8.47032947e-22
,and then sqrt returns nan.