Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] OWBoxPlot: Fix empty continuous contingency check #3165

Merged

Conversation

ales-erjavec
Copy link
Contributor

Issue

A wrong check for empty continuous contingencies omits groups that it should not.

For instance on: vowel.tab.txt
on variable: f0, group by: Class
screen shot 2018-07-27 at 15 16 58

Description of changes

Fix check for empty continuous contingency, add asserts where contingencies are summed over.

Includes
  • Code changes
  • Tests
  • Documentation

Contingencies for continuous variables are (2, N) shaped where the
only the second row contains the counts.
@@ -158,9 +158,9 @@ def test_label_overlap(self):
self.widget.stretched = False
self.__select_variable("chest pain")
self.__select_group("gender")
self.widget.show()
QTest.qWait(3000)
Copy link
Contributor

Choose a reason for hiding this comment

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

You removed the only use of QTest. Can you remove the import too, so pylint does not complain about it being unused?

@lanzagar lanzagar added this to the 3.15 milestone Aug 3, 2018
@ales-erjavec ales-erjavec force-pushed the fixes/box-plot-empty-contingency-check branch from 26d630c to 9763f6d Compare August 3, 2018 08:39
@codecov-io
Copy link

codecov-io commented Aug 3, 2018

Codecov Report

Merging #3165 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3165      +/-   ##
==========================================
+ Coverage   82.63%   82.63%   +<.01%     
==========================================
  Files         340      340              
  Lines       58788    58796       +8     
==========================================
+ Hits        48577    48585       +8     
  Misses      10211    10211

@lanzagar lanzagar merged commit 000bcad into biolab:master Aug 3, 2018
@ales-erjavec ales-erjavec deleted the fixes/box-plot-empty-contingency-check branch September 12, 2018 10:08
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.

3 participants