Skip to content

[MAINT] remove unused imports in examples+tools - #5005

Merged
bashtage merged 3 commits into
statsmodels:masterfrom
jbrockmendel:tools_imports
May 4, 2019
Merged

bashtage merged 3 commits into
statsmodels:masterfrom
jbrockmendel:tools_imports

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

No description provided.

@coveralls

coveralls commented Aug 25, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.03%) to 84.515% when pulling 26f4d84 on jbrockmendel:tools_imports into 8385436 on statsmodels:master.

@bashtage

Copy link
Copy Markdown
Member

@josef-pkt Tiny PR with simple cleanups. Should be merged.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt let's get this and similarly trivial stuff out of the way, start the second half of the week strong

@josef-pkt

Copy link
Copy Markdown
Member

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

this is again fixing things in notebook exported py files, instead of syncing

Updated to remove the corresponding imports in the ipynb file.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt comments have been addressed; bashtage has given go-ahead. Any chance of action on these?

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt green, no rebase needed

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt getting these done will prevent them from keeping into other PRs (which cause merge conflicts which cause [...])

@bashtage

bashtage commented May 3, 2019

Copy link
Copy Markdown
Member

Rebase and verify these are still relevant, and It will get in.

@codecov

codecov Bot commented May 3, 2019

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@8c9e6ea). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##             master   #5005   +/-   ##
========================================
  Coverage          ?   81.6%           
========================================
  Files             ?     569           
  Lines             ?   89770           
  Branches          ?   10047           
========================================
  Hits              ?   73259           
  Misses            ?   14244           
  Partials          ?    2267

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 8c9e6ea...63a58c3. Read the comment docs.

@codecov

codecov Bot commented May 3, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #5005 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5005      +/-   ##
=========================================
- Coverage   82.01%     82%   -0.02%     
=========================================
  Files         590     590              
  Lines       93622   93541      -81     
  Branches    10376   10369       -7     
=========================================
- Hits        76788   76707      -81     
- Misses      14430   14434       +4     
+ Partials     2404    2400       -4
Impacted Files Coverage Δ
statsmodels/tools/grouputils.py 60.86% <0%> (-6.53%) ⬇️
statsmodels/base/tests/test_generic_methods.py 98.39% <0%> (-0.9%) ⬇️
statsmodels/tools/tests/test_grouputils.py 98.4% <0%> (-0.31%) ⬇️
statsmodels/discrete/tests/test_discrete.py 99.26% <0%> (-0.08%) ⬇️
statsmodels/discrete/tests/test_constrained.py 90.56% <0%> (-0.08%) ⬇️
...odels/sandbox/regression/tests/test_gmm_poisson.py 95.16% <0%> (-0.03%) ⬇️
statsmodels/regression/tests/test_robustcov.py 99.45% <0%> (-0.02%) ⬇️
statsmodels/genmod/tests/test_glm_weights.py 98.2% <0%> (-0.01%) ⬇️
...a/regime_switching/tests/test_markov_regression.py 99.04% <0%> (-0.01%) ⬇️
statsmodels/base/tests/test_penalized.py 99.03% <0%> (-0.01%) ⬇️
... and 41 more

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 8385436...26f4d84. Read the comment docs.

@bashtage
bashtage merged commit 2417c93 into statsmodels:master May 4, 2019
@jbrockmendel
jbrockmendel deleted the tools_imports branch May 5, 2019 01:26
"metadata": {},
"outputs": [],
"source": [
"from statsmodels.tsa.arima_process import arma_generate_sample, ArmaProcess"

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.

It looks like you removed the world "import" here, incorrectly.

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.

Causing a fail on travis docbuild.

@bashtage

bashtage commented May 5, 2019

Copy link
Copy Markdown
Member

Need to get docbuild to keep travis from passing...

@thequackdaddy

Copy link
Copy Markdown
Member

I think the recommended way was “set -e”

That didn’t work back in the day because so much was broken/warning. Could probably retry this and be more diligent going forward?

@bashtage bashtage mentioned this pull request May 5, 2019
2 tasks done
jbrockmendel added a commit to jbrockmendel/statsmodels that referenced this pull request May 5, 2019
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.

5 participants