Skip to content

REF: raise early on invalid method - #5224

Merged
josef-pkt merged 2 commits into
statsmodels:masterfrom
jbrockmendel:merrors
Nov 28, 2018
Merged

josef-pkt merged 2 commits into
statsmodels:masterfrom
jbrockmendel:merrors

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

Check for a valid "method" argument before doing anything else, avoiding potentially-expensive calls.

Flesh out a more helpful error message.

@coveralls

coveralls commented Sep 18, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.03%) to 84.241% when pulling 6c3886b on jbrockmendel:merrors into d775833 on statsmodels:master.

@bashtage

Copy link
Copy Markdown
Member

Needs a test that passes an invalid method to fit new code and ensure that it works.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Done

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt any chance of movement on this? There are other improvements in this module I'd like to work on, would prefer to avoid merge conflicts.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt ping

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt gentle ping. raise-early, helpful exception message, and tests.

@josef-pkt

Copy link
Copy Markdown
Member

looks good

if this is from September, then a rebase on master would be useful. (I didn't check out the branch to see where this branches off)

@codecov

codecov Bot commented Nov 27, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #5224 into master will increase coverage by 0.01%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5224      +/-   ##
==========================================
+ Coverage   81.74%   81.76%   +0.01%     
==========================================
  Files         569      569              
  Lines       89847    89849       +2     
  Branches    10028    10022       -6     
==========================================
+ Hits        73447    73462      +15     
+ Misses      14127    14120       -7     
+ Partials     2273     2267       -6
Impacted Files Coverage Δ
statsmodels/discrete/count_model.py 93.75% <100%> (+0.54%) ⬆️
statsmodels/discrete/tests/test_discrete.py 99.26% <100%> (ø) ⬆️
statsmodels/discrete/tests/test_count_model.py 100% <100%> (ø) ⬆️
statsmodels/discrete/discrete_model.py 88.7% <82.35%> (+0.72%) ⬆️

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 d775833...6c3886b. Read the comment docs.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

rebased. ping on green?

@josef-pkt
josef-pkt merged commit ed49dc1 into statsmodels:master Nov 28, 2018
@josef-pkt

Copy link
Copy Markdown
Member

all green, merged

@jbrockmendel Thank you

@jbrockmendel
jbrockmendel deleted the merrors branch November 28, 2018 03:05
@josef-pkt josef-pkt added this to the 0.10 milestone Dec 5, 2018
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