Skip to content

BUG: Fix NameError in grouputils, make __main__ into tests - #5127

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

bashtage merged 3 commits into
statsmodels:masterfrom
jbrockmendel:swgroup

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

Fixes a lurking NameError in grouputils, closes #3558

Takes the __main__ section of this file and turns it into tests, including one that hits the previously-failing path.

Updates imports, removing unused imports of grouputils.Group

sandwich_covariance uses Group but only actually needs combine_indices. By using only the needed code, we make it easier to tell which parts of grouputils are actually used.

@coveralls

coveralls commented Sep 7, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 83.916% when pulling a52aacd on jbrockmendel:swgroup into 7033d45 on statsmodels:master.

@codecov

codecov Bot commented Sep 8, 2018 •

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 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5127   +/-   ##
=========================================
  Coverage          ?   81.43%           
=========================================
  Files             ?      582           
  Lines             ?    90355           
  Branches          ?    10107           
=========================================
  Hits              ?    73584           
  Misses            ?    14474           
  Partials          ?     2297
Impacted Files Coverage Δ
statsmodels/tools/tests/test_grouputils.py 98.66% <100%> (ø)
statsmodels/tools/grouputils.py 67.67% <100%> (ø)
statsmodels/sandbox/panel/panel_short.py 83.9% <100%> (ø)
statsmodels/stats/tests/test_groups_sw.py 100% <100%> (ø)
statsmodels/stats/sandwich_covariance.py 75.13% <100%> (ø)

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...06c432c. Read the comment docs.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Might close #688.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt bugfix with test

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt Bug Delenda Est, yah?

(Autocorrect really didn’t want to let me write that)

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt fewer bugs, more tests, yah?

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt this is a pretty easy one to knock out next

@bashtage bashtage self-assigned this May 1, 2019
@bashtage

bashtage commented May 2, 2019

Copy link
Copy Markdown
Member

Needs to be rebased to clean up merge history.

@bashtage

bashtage commented May 3, 2019

Copy link
Copy Markdown
Member

Need to either remove the smoke decorator or add smoke as aregistered decorator in setup.cfg.

@bashtage
bashtage merged commit 35541f4 into statsmodels:master May 4, 2019
@jbrockmendel
jbrockmendel deleted the swgroup branch May 4, 2019 14:27
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.

NameErrors in grouputils

3 participants