-
Notifications
You must be signed in to change notification settings - Fork 20
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 tests on i386 architectures #46
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 2e-9 is absolutely good enough I think... https://www.explainxkcd.com/wiki/index.php/2170:_Coordinate_Precision
Codecov Report
@@ Coverage Diff @@
## main #46 +/- ##
=======================================
Coverage 88.03% 88.03%
=======================================
Files 21 21
Lines 1438 1438
=======================================
Hits 1266 1266
Misses 172 172
Flags with carried forward coverage won't be shown. Click here to find out more.
|
The test failure seems to be unrelated |
Indeed. I'm rerunning the jobs, we'll see how it goes, otherwise maybe @djhoese has an idea? |
I think coveralls is having a hard time today. |
@mraspaud I restarted tests and things seem happier now. Had to restart the final coveralls upload twice. I also switched this to a "bug" label. Not sure I'd consider this an "enhancement" in any way. Merging now... |
On i386 platforms few unit tests fails.
This PR fixes those failures by setting an absolute tolerance value in floating point arrays comparison.
The absolute tolerance value used is
2e-9
. Looking at the data values it seems a reasonable chaice but please feel free to make your own analysis.git diff origin/main **/*py | flake8 --diff