Skip to content

TST: consolidate version checks, remove outdated - #5157

Closed
jbrockmendel wants to merge 7 commits into
statsmodels:masterfrom
jbrockmendel:pversion
Closed

jbrockmendel wants to merge 7 commits into
statsmodels:masterfrom
jbrockmendel:pversion

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

Closes #1063.

We recently removed some version checks for unsupported numpy/scipy/pandas versions, but missed a few. This gets most or all of the remaining ones.

Consolidates version checks in the compat files so that in the future they are all in one place when it comes time to update the minimum required versions.

Comment thread statsmodels/compat/pandas.py Outdated


version = LooseVersion(pandas.__version__)
pandas_lt_0_19_2 = version < '0.19.1'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This matches the existing code, but there is a 0.19.2 vs 0.19.1 mismatch. Please advise.

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.

Surely should be lte and <= '0.19.2'

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Related: #5036

@coveralls

coveralls commented Sep 9, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) to 84.015% when pulling 27533b3 on jbrockmendel:pversion into e8615f5 on statsmodels:master.

@codecov

codecov Bot commented Sep 10, 2018 •

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5157   +/-   ##
=========================================
  Coverage          ?   81.55%           
=========================================
  Files             ?      569           
  Lines             ?    89610           
  Branches          ?    10027           
=========================================
  Hits              ?    73078           
  Misses            ?    14265           
  Partials          ?     2267
Impacted Files Coverage Δ
statsmodels/multivariate/tests/test_factor.py 90.62% <ø> (ø)
statsmodels/imputation/tests/test_ros.py 100% <ø> (ø)
statsmodels/graphics/tests/test_tsaplots.py 99.31% <100%> (ø)
statsmodels/graphics/tests/test_mosaicplot.py 99.62% <100%> (ø)
statsmodels/stats/tests/test_power.py 93.89% <100%> (ø)
statsmodels/stats/mediation.py 94.96% <100%> (ø)
statsmodels/tsa/vector_ar/tests/test_dynamic.py 29.54% <100%> (ø)

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 319ddc6...7b54424. Read the comment docs.

@bashtage

Copy link
Copy Markdown
Member

LGTM

@jbrockmendel jbrockmendel mentioned this pull request Sep 10, 2018
31 of 32 tasks
@jbrockmendel

jbrockmendel commented Sep 11, 2018 •

Copy link
Copy Markdown
Contributor Author

@josef-pkt defacto green, OKed by bashtage, and no merge conflict

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt merge conflicts are going to start piling up before too long...

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt this consolidation should definitely happen before 0.10.0

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt any thoughts here?

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt let's do version-checking right

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@ChadFulton prevent future complications

@bashtage bashtage mentioned this pull request May 1, 2019
3 tasks done
@jbrockmendel
jbrockmendel deleted the pversion branch May 2, 2019 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove version compatibility code

3 participants