Skip to content

Commit

Permalink
MAINT: Suppress upstream warnings
Browse files Browse the repository at this point in the history
Suppress warnings requiring changes in upstream packages
  • Loading branch information
bashtage committed Sep 7, 2018
1 parent b3d2a62 commit cdeb3d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[tool:pytest]
# Filter warnings generated by dependencies
filterwarnings =
ignore:pandas.core.common.is_categorical_dtype
ignore:pandas.core.common.is_categorical_dtype:DeprecationWarning:patsy
ignore:Using a non-tuple sequence:FutureWarning:mkl_fft
ignore:Using a non-tuple:FutureWarning:scipy.signal
ignore:Using a non-tuple:FutureWarning:scipy.stats.stats

[flake8]
exclude=.git,build,docs
Expand Down
2 changes: 1 addition & 1 deletion statsmodels/discrete/tests/test_discrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class TestProbitBasinhopping(CheckBinaryResults):

@classmethod
def setup_class(cls):
data = sm.datasets.spector.load()
data = sm.datasets.spector.load(as_pandas=False)
data.exog = sm.add_constant(data.exog, prepend=False)
res2 = Spector()
res2.probit()
Expand Down
4 changes: 1 addition & 3 deletions statsmodels/stats/libqsturng/qsturng_.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,7 @@ def _interpolate_p(p, r, v):
q = d1 * (p-p0) + d0

# transform back to y
v = min(v, 1e38)
y = -q / (math.sqrt(2) * \
scipy.stats.t.isf((1.+p)/2., v))
y = -q / (math.sqrt(2) * scipy.stats.t.isf((1.+p)/2., v))

return y

Expand Down

0 comments on commit cdeb3d1

Please sign in to comment.