Skip to content

CLN: Replace UserWarnings with meaningful warning - #3012

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:remove-user-warnings
Jun 16, 2016
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:remove-user-warnings

Conversation

@bashtage

Copy link
Copy Markdown
Member

Replace all UserWarnings with meaningful warnings

xref #2781
closes #2747
closes #2492

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.009%) to 85.467% when pulling 7d34cca on bashtage:remove-user-warnings into 1320407 on statsmodels:master.

Comment thread statsmodels/tsa/statespace/varmax.py Outdated
elif self.model.k_exog == 0 and exog is not None:
warn('Exogenous array provided to predict, but additional data not'
' required. `exog` argument ignored.')
' required. `exog` argument ignored.', InvalidInputWarning)

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.

What's the difference here between InvalidInputWarning and InputIgnoredWarning, given that you also added the latter

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.

Have switched both to ValueWarning, which I think makes sense since they are like ValueErrors that don't raise.

@josef-pkt

Copy link
Copy Markdown
Member

looks good overall

main question is whether the changes in statespace will cause a large number of merge conflicts given that we have at least two large PRs open or coming.
The problem I had sometimes in the past was that resolving one merge conflict caused additional merge conflicts in later commits during rebase of PRs with many committs

@ChadFulton Can you guess whether this is ok for you, and avoids too many merge conflicts?

An alternative would be to split off the statespace changes and apply them to Chad's branch or merge them at a later time.

@josef-pkt josef-pkt added this to the 0.8 milestone Jun 14, 2016
Replace all UserWarnings with meaningful warnings

xref statsmodels#2781
closes statsmodels#2747
closes statsmodels#2492
@bashtage
bashtage force-pushed the remove-user-warnings branch from 7d34cca to dff5609 Compare June 14, 2016 18:19
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.008%) to 85.472% when pulling dff5609 on bashtage:remove-user-warnings into 9965c31 on statsmodels:master.

@ChadFulton

Copy link
Copy Markdown
Member

My guess is that these will be okay. l have time to look closer this evening.

Sent from my iPhone

On Jun 14, 2016, at 9:55 AM, Josef Perktold [email protected] wrote:

looks good overall

main question is whether the changes in statespace will cause a large number of merge conflicts given that we have at least two large PRs open or coming.
The problem I had sometimes in the past was that resolving one merge conflict caused additional merge conflicts in later commits during rebase of PRs with many committs

@ChadFulton Can you guess whether this is ok for you, and avoids too many merge conflicts?

An alternative would be to split off the statespace changes and apply them to Chad's branch or merge them at a later time.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@ChadFulton

Copy link
Copy Markdown
Member

Yes, shouldn't be a problem. Thanks!

@josef-pkt

Copy link
Copy Markdown
Member

@ChadFulton thanks,

looks good to me, I like the new warnings better.
merging

@bashtage Thank you

@josef-pkt
josef-pkt merged commit d2de2f0 into statsmodels:master Jun 16, 2016
@bashtage
bashtage deleted the remove-user-warnings branch June 16, 2016 18:31
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.

TST: Warnings with current master in test suite CLN warning on python 3.4 stats multicomp

4 participants