Skip to content

REF: Rename ColinearityWarning - #4889

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:rename-colinearity-warning
Aug 17, 2018
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:rename-colinearity-warning

Conversation

@bashtage

Copy link
Copy Markdown
Member

Fix typo in warning name

closes #4671

@bashtage
bashtage force-pushed the rename-colinearity-warning branch from 6af11f5 to d39d428 Compare August 13, 2018 10:42
Comment thread statsmodels/tsa/tests/test_stattools.py Outdated
from statsmodels.datasets import macrodata, sunspots
from statsmodels.tools.sm_exceptions import ColinearityWarning
from statsmodels.tools.sm_exceptions import MissingDataError
from statsmodels.tools.sm_exceptions import CollinearityWarning, MissingDataError

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.

this line looks too long now, use parenthesis

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Lots of places seem to use 100, which is within the pep spec. I definitely prefer 100.

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.

Our policy is 80 in general, with minor violations if readability improves
(If it's more than 80, then a linter might/will change it.)

@josef-pkt

Copy link
Copy Markdown
Member

LGTM, minor pep-8

@josef-pkt

Copy link
Copy Markdown
Member

It's not backwards compatible, but I doubt anyone checks this warning in code

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) to 83.69% when pulling d39d428 on bashtage:rename-colinearity-warning into ce7aaab on statsmodels:master.

@coveralls

coveralls commented Aug 13, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.09%) to 83.726% when pulling 132744e on bashtage:rename-colinearity-warning into ce7aaab on statsmodels:master.

Fix typo in warning name

closes statsmodels#4671
@bashtage
bashtage force-pushed the rename-colinearity-warning branch from d39d428 to 132744e Compare August 13, 2018 13:38
@josef-pkt

Copy link
Copy Markdown
Member

as green as it gets, merging

@bashtage Thank you

@josef-pkt
josef-pkt merged commit 04a4d27 into statsmodels:master Aug 17, 2018
@bashtage
bashtage deleted the rename-colinearity-warning branch August 19, 2018 21:49
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.

REF: warnings rename ColinearityWarning to CollinearityWarning

3 participants