Repository navigation
MAINT: Relax tolerance on OSX only - #5628
Conversation
| @@ -0,0 +1,8 @@ | |||
| import platform | |||
|
|
|||
| __all__ = ['IS_OSX'] | |||
There was a problem hiding this comment.
Does this need it’s own module?
There was a problem hiding this comment.
It is now used in 2 distinct files, so I say yes. It also prevents all of the HAVE_MATPLOTLIB style imports should this need arise again.
| rtol = 1e-10 | ||
| atol = 1e-12 | ||
| if IS_OSX: | ||
| rtol = 1e-8 |
There was a problem hiding this comment.
Comment pointing back to this PR?
Codecov Report
@@ Coverage Diff @@
## master #5628 +/- ##
=========================================
Coverage ? 82.01%
=========================================
Files ? 588
Lines ? 93387
Branches ? 10377
=========================================
Hits ? 76588
Misses ? 14394
Partials ? 2405
Continue to review full report at Codecov.
|
43c5c3c to
07692aa
Compare
Relax tolerance on test that randomly fails on OpenBlas/OSX
|
This is only for azure, and so passing. |
|
|
||
| # Test analytic scores and Hessian using numeric differentiation | ||
| @pytest.mark.skipif(PLATFORM_OSX, reason='known to fail on OSX due to ' | ||
| 'numerical differences') |
There was a problem hiding this comment.
shouldnt this be an xfail? the test is failing for poorly-understood reasons, not invalid on OSX.
Relax tolerance on test that randomly fails on OpenBlas/OSX
NumPy's guide.