Skip to content

Commit

Permalink
Merge pull request #1 from dannon/bbi-sd-underflow-bug
Browse files Browse the repository at this point in the history
Adjust comment for flake8
  • Loading branch information
jgoecks committed Jul 24, 2015
2 parents e36d1c2 + 28a544c commit 59a3804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/visualization/data_providers/genome.py
Expand Up @@ -1180,7 +1180,7 @@ def _summarize_bbi( bbi, chrom, start, end, num_points ):
# Compute $\mu \pm 2\sigma$ to provide an estimate for upper and lower
# bounds that contain ~95% of the data.
mean = summary.sum_data[0] / valid_count
var = max( summary.sum_squares[0] - mean, 0 ) # Prevent variance underflow.
var = max( summary.sum_squares[0] - mean, 0 ) # Prevent variance underflow.
if valid_count > 1:
var /= valid_count - 1
sd = math.sqrt( var )
Expand Down

0 comments on commit 59a3804

Please sign in to comment.