Repository navigation
Fix a bunch of NameErrors by adding missing imports etc - #3515
jbrockmendel wants to merge 6 commits into
Conversation
|
@jbrockmendel Thanks in general: making changes across modules might result in merge conflicts with other PRs. This would affect at most a few modules, but a quick search of open PRs with label:comp-xxx might be useful. (That's what I will have to do before merging.) |
1 similar comment
|
I would suggest not fixing thing in name == main -- rather it would be better to delete these. |
|
@bashtage I'm inclined to agree, but for now am trying to be non-opinionated while getting up to speed with the code-base. |
|
to the I think outside of the sandbox almost all |
|
this type of PRs are not necessarily good for users: Instead of exceptions they might get incorrect numbers without any indication that they are not unit tested. |
|
I can get on board with erring on the side of correctness. Would you prefer Heck, an error of the form |
|
This is a dead-letter. |
Ran:
flake8 --filename=./statsmodels/tsa/* | grep undefined
and went through to fix everything it turned up. In most cases it was just a matter of a missing import. In a couple there were method definitions missing keyword arguments that could be inferred by context.
The two cases most deserving double-checking are
One case left un-handled was calls to ARIMAProcess in tsa.arima_process. Didn't want to guess what was intended there.
For now just looked at tsa/*, will do the same for other directories if this PR is OK.