From e5ba48c06a76ac1d4d4725cf633de1cf3abfde2d Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Tue, 2 Oct 2012 14:52:40 -0500 Subject: 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 --- web/webqtl/collection/ExportSelectionDetailInfoPage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'web/webqtl/collection/ExportSelectionDetailInfoPage.py') 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: -- cgit v1.2.3