Skip to content

MAINT: Relax tolerance on OSX only - #5628

Merged
bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:relax-tol-osx
May 6, 2019
Merged

bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:relax-tol-osx

Conversation

@bashtage

@bashtage bashtage commented May 6, 2019

Copy link
Copy Markdown
Member

Relax tolerance on test that randomly fails on OpenBlas/OSX

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.001%) to 84.536% when pulling 3829ba1 on bashtage:relax-tol-osx into ebd7a4c on statsmodels:master.

Comment thread statsmodels/compat/_testing.py Outdated
@@ -0,0 +1,8 @@
import platform

__all__ = ['IS_OSX']

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this need it’s own module?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment pointing back to this PR?

@codecov

codecov Bot commented May 6, 2019 •

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@2207331). Click here to learn what that means.
The diff coverage is 57.14%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5628   +/-   ##
=========================================
  Coverage          ?   82.01%           
=========================================
  Files             ?      588           
  Lines             ?    93387           
  Branches          ?    10377           
=========================================
  Hits              ?    76588           
  Misses            ?    14394           
  Partials          ?     2405
Impacted Files Coverage Δ
statsmodels/base/tests/test_generic_methods.py 98.6% <57.14%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2207331...25822d4. Read the comment docs.

@bashtage
bashtage force-pushed the relax-tol-osx branch 2 times, most recently from 43c5c3c to 07692aa Compare May 6, 2019 14:18
Relax tolerance on test that randomly fails on OpenBlas/OSX
@bashtage

bashtage commented May 6, 2019

Copy link
Copy Markdown
Member Author

This is only for azure, and so passing.

@bashtage
bashtage merged commit 368854f into statsmodels:master May 6, 2019
@bashtage
bashtage deleted the relax-tol-osx branch May 6, 2019 15:32

# Test analytic scores and Hessian using numeric differentiation
@pytest.mark.skipif(PLATFORM_OSX, reason='known to fail on OSX due to '
'numerical differences')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

shouldnt this be an xfail? the test is failing for poorly-understood reasons, not invalid on OSX.

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.

Maybe tolerance error for test_zero_constrained, macOS

3 participants