Skip to content

MAINT: Fix warnings - #5135

Merged
josef-pkt merged 4 commits into
statsmodels:masterfrom
bashtage:fix-warnings
Sep 7, 2018
Merged

josef-pkt merged 4 commits into
statsmodels:masterfrom
bashtage:fix-warnings

Conversation

@bashtage

@bashtage bashtage commented Sep 7, 2018

Copy link
Copy Markdown
Member

Fix many of the large number of Future/PendingDeprecation warnings that Pytest 3.8 now shows.

@bashtage

bashtage commented Sep 7, 2018

Copy link
Copy Markdown
Member Author

This should silence many of the deluge of warnings that Pytest finally started letting through. There will still be work to do but travis should be able to complete.

@bashtage

bashtage commented Sep 7, 2018

Copy link
Copy Markdown
Member Author

xref #5132

@bashtage bashtage changed the title Fix warnings MAINT: Fix warnings Sep 7, 2018
jbrockmendel added a commit to jbrockmendel/statsmodels that referenced this pull request Sep 7, 2018
@coveralls

coveralls commented Sep 7, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.005%) to 83.924% when pulling cdeb3d1 on bashtage:fix-warnings into 7fc1ef7 on statsmodels:master.

@codecov

codecov Bot commented Sep 7, 2018 •

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5135   +/-   ##
=========================================
  Coverage          ?   81.41%           
=========================================
  Files             ?      582           
  Lines             ?    90389           
  Branches          ?    10114           
=========================================
  Hits              ?    73594           
  Misses            ?    14494           
  Partials          ?     2301
Impacted Files Coverage Δ
statsmodels/tsa/statespace/tests/test_varmax.py 99.12% <ø> (ø)
statsmodels/tools/tests/test_numdiff.py 98.39% <ø> (ø)
statsmodels/sandbox/distributions/mv_normal.py 38.97% <ø> (ø)
statsmodels/sandbox/distributions/genpareto.py 0% <0%> (ø)
statsmodels/stats/tests/test_corrpsd.py 100% <100%> (ø)
statsmodels/duration/tests/test_phreg.py 100% <100%> (ø)
statsmodels/tsa/statespace/tests/test_simulate.py 100% <100%> (ø)
statsmodels/stats/tests/test_moment_helpers.py 95.55% <100%> (ø)
statsmodels/base/data.py 90.26% <100%> (ø)
...a/statespace/tests/test_exact_diffuse_filtering.py 98.16% <100%> (ø)
... and 12 more

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 7fc1ef7...cdeb3d1. Read the comment docs.

Replace random_integers
Silence matrix warnings
Remove invalid escape text
Remove future invalid array access
Remove attempt to access ix attribute
Import comb from corect location (scipy.special)
Remove redundant patsy code
Fix scipy compat issues related to function location changes
Change trend to 'n' in statespace models
Suppress warning created by Patsy
Suppress warnings requiring changes in upstream packages
@bashtage

bashtage commented Sep 7, 2018

Copy link
Copy Markdown
Member Author

@josef-pkt @jbrockmendel This is ready now. It fixes all future/pending dep/etc warnings and silences all of the upstream generated warnings (tuple access in scipy and mkl_fft, categorical in patsy).

@josef-pkt

Copy link
Copy Markdown
Member

LGTM based on quick skimming
will look again and merge later today

import warnings

# ignore PendingDeprecationWarning due to matrix conversion in SciPy
pytestmark = pytest.mark.filterwarnings('ignore:matrix subclass')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

just to understand:
Does this apply to the entire module?

@bashtage

bashtage commented Sep 7, 2018 via email

Copy link
Copy Markdown
Member Author

@bashtage

bashtage commented Sep 7, 2018 via email

Copy link
Copy Markdown
Member Author

@josef-pkt

Copy link
Copy Markdown
Member

I'm merging this without waiting for appveyor, so we get Travis green again.

looks good,
corrpsd might need a separate look for why we use matrix (but that could come also from the use of scipy.sparse)

@bashtage Thank you

@josef-pkt
josef-pkt merged commit 23c98d4 into statsmodels:master Sep 7, 2018
@bashtage

bashtage commented Sep 7, 2018 via email

Copy link
Copy Markdown
Member Author

bashtage pushed a commit to bashtage/statsmodels that referenced this pull request Sep 7, 2018
jbrockmendel added a commit to jbrockmendel/statsmodels that referenced this pull request Sep 7, 2018
@bashtage
bashtage deleted the fix-warnings branch September 9, 2018 07:32
@josef-pkt josef-pkt added this to the 0.10 milestone Sep 15, 2018
if trend == 'nc':
warnings.warn("Argument option trend='nc' is deprecated. Please"
warnings.warn("Argument option trend='n' is deprecated. Please"
" use option trend='n'.", DeprecationWarning)

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 message make sense?

bashtage pushed a commit to bashtage/statsmodels that referenced this pull request May 1, 2019
bashtage pushed a commit to bashtage/statsmodels that referenced this pull request May 1, 2019
bashtage pushed a commit that referenced this pull request May 1, 2019
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.

4 participants