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] Stats: Fix counting of missing values for non-numeric data #1585

Merged
merged 1 commit into from
Sep 22, 2016

Conversation

nikicc
Copy link
Contributor

@nikicc nikicc commented Sep 21, 2016

Stats returned negative numbers of nans on non-numberic data (metas). Hence, for metas, table widget always showed 'no missing values'. The problem was in priorities. We should first negate binary array and only then sum. Without brackets binary array was first summed and only then ~ was applied. On integers ~ returns -(x+1) which lead to negative values.

Stats returned negative numbers of nans on non-numberic data (metas). Hence, for metas, table widget always showed 'no missing values'. The problem was in priorities. We should first negate binary array and only then sum. Without brackets binary array was first summed and only then ~ was applied. On integers ~ returns -(x+1) which lead to negative values.
@codecov-io
Copy link

codecov-io commented Sep 21, 2016

Current coverage is 88.66% (diff: 100%)

Merging #1585 into master will not change coverage

@@             master      #1585   diff @@
==========================================
  Files            78         78          
  Lines          8111       8111          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           7192       7192          
  Misses          919        919          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update 9730c7a...82d8ce0

Copy link
Member

@astaric astaric left a comment

Choose a reason for hiding this comment

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

Nice catch

@astaric astaric merged commit a291589 into biolab:master Sep 22, 2016
@nikicc nikicc deleted the fix-stats branch September 22, 2016 09:49
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