Skip to content

[FIX] Stats: Fix counting of missing values for non-numeric data#1585

Merged
astaric merged 1 commit intobiolab:masterfrom
nikicc:fix-stats
Sep 22, 2016
Merged

[FIX] Stats: Fix counting of missing values for non-numeric data#1585
astaric merged 1 commit intobiolab:masterfrom
nikicc:fix-stats

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