Skip to content

Cleaned up some pep8 errors and fixes #3167 - #3170

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
jvhaggard:jeffreys_typo_fix
Aug 19, 2016
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
jvhaggard:jeffreys_typo_fix

Conversation

@jvhaggard

Copy link
Copy Markdown

STY: Small spacing cleanups
BUG: Fixed typo in option #3167

Comment thread statsmodels/stats/proportion.py Outdated

# This is a typo cleaned up in issue #3167 and will need to be deprecated in
# a future release.
elif method == 'jeffrey':

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.

replace this by method[:4] == 'jeff'
We started to switch to just checking unambigous part of the string in a few methods. This avoids deprecation and more forgiving to users that misspell the name.

@josef-pkt

Copy link
Copy Markdown
Member

@jvhaggard Thank you

you could amend the commit and force push with the change to method[:4] == 'jeff' (or squash)
Then, I think it's ready to merge, either tonight or tomorrow.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.003%) to 89.254% when pulling 9c367f8 on jvhaggard:jeffreys_typo_fix into 1168655 on statsmodels:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 89.257% when pulling 29c3ddc on jvhaggard:jeffreys_typo_fix into 1168655 on statsmodels:master.

Comment thread statsmodels/stats/proportion.py Outdated
nobs - count + 0.5)
# method adjusted to be more forgiving of misspellings or incorrect option name
elif method[:4] == 'jeff':
ci_low, ci_upp = stats.beta.interval(1 - alpha, count + 0.5,

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.

do you have a tab in there instead of 4 spaces?
this shows a double intendation

@jvhaggard jvhaggard Aug 19, 2016 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

You are correct, I had an extra 4 spaces in there. I must have hit tab accidentally. I put in a fix.

…eak existing configurations.

changed to check unambiguous first part of the string

Removed extra spacing
@josef-pkt

Copy link
Copy Markdown
Member

@jvhaggard Thank you,

looks good now, I will merge when travis comes back green

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 89.257% when pulling 5648f5c on jvhaggard:jeffreys_typo_fix into 1168655 on statsmodels:master.

@josef-pkt
josef-pkt merged commit d867d8a into statsmodels:master Aug 19, 2016
@jvhaggard
jvhaggard deleted the jeffreys_typo_fix branch August 19, 2016 19:24
@TomAugspurger TomAugspurger mentioned this pull request Feb 1, 2017
4 of 28 tasks
TomAugspurger pushed a commit to TomAugspurger/statsmodels that referenced this pull request Feb 2, 2017
DOC/REF: Cleaned up some pep8 errors and fixes statsmodels#3167
(cherry picked from commit d867d8a)
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.

3 participants