aboutsummaryrefslogtreecommitdiff
path: root/web/webqtl/collection
diff options
context:
space:
mode:
authorZachary Sloan2013-01-11 23:59:41 +0000
committerZachary Sloan2013-01-11 23:59:41 +0000
commit2b2970d167c5b555e0e0ad0b34b72f817c1fac91 (patch)
tree36fa8c708138fff03593e0f50cc933bcb62b5592 /web/webqtl/collection
parent1db9237a05fd27c80dc963db9916072594156198 (diff)
parentd39b691994a395c45fa242de6d64d12a5470af10 (diff)
downloadgenenetwork2-2b2970d167c5b555e0e0ad0b34b72f817c1fac91.tar.gz
Merge branch 'flask' of http://github.com/zsloan/genenetwork
Diffstat (limited to 'web/webqtl/collection')
-rwxr-xr-xweb/webqtl/collection/ExportSelectionDetailInfoPage.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/webqtl/collection/ExportSelectionDetailInfoPage.py b/web/webqtl/collection/ExportSelectionDetailInfoPage.py
index 69f293b2..7238c797 100755
--- a/web/webqtl/collection/ExportSelectionDetailInfoPage.py
+++ b/web/webqtl/collection/ExportSelectionDetailInfoPage.py
@@ -128,7 +128,10 @@ class ExportSelectionDetailInfoPage(templatePage):
count = count + 1
except:
pass
- mean = sum/count
+ if count == 0:
+ mean = 0
+ else:
+ mean = sum/count
text[-1].append(mean)
text[-1] += testval
if len(text[0]) < 255 or len(text) < 255: