aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorZachary Sloan2012-10-02 14:52:40 -0500
committerZachary Sloan2012-10-02 14:52:40 -0500
commite5ba48c06a76ac1d4d4725cf633de1cf3abfde2d (patch)
treee8d109e1d75136b0bafe16cd5ec527597d1ab8e3 /web
parent8bd404246b83f46f34c9b162c39c2dfc6ab39049 (diff)
downloadgenenetwork2-e5ba48c06a76ac1d4d4725cf633de1cf3abfde2d.tar.gz
Renamed trait_data_and_analysis.html to show_trait.html, DataEditingPage.py to show_trait.py, and trait_data_and_analysis.coffee to show_trait.coffee
Diffstat (limited to 'web')
-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..a61b6f6e 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: