diff options
author | Zachary Sloan | 2012-10-02 14:52:40 -0500 |
---|---|---|
committer | Zachary Sloan | 2012-10-02 14:52:40 -0500 |
commit | e5ba48c06a76ac1d4d4725cf633de1cf3abfde2d (patch) | |
tree | e8d109e1d75136b0bafe16cd5ec527597d1ab8e3 /web/webqtl/collection/ExportSelectionDetailInfoPage.py | |
parent | 8bd404246b83f46f34c9b162c39c2dfc6ab39049 (diff) | |
download | genenetwork2-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/webqtl/collection/ExportSelectionDetailInfoPage.py')
-rwxr-xr-x | web/webqtl/collection/ExportSelectionDetailInfoPage.py | 5 |
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: |