aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2016-11-15 19:27:36 +0000
committerzsloan2016-11-15 19:27:36 +0000
commit8e8cb3540565edb3d221ef08fe3863449c29c21d (patch)
treee64e2fac2cb2ae75ff123e442e846d67c1917ce3 /wqflask/base
parent21f8d536207c851545b7b3eb31df685bc636b20a (diff)
downloadgenenetwork2-8e8cb3540565edb3d221ef08fe3863449c29c21d.tar.gz
Fixed issue where sample values of 0 would sometimes be displayed as 'x', which would result in wrong correlation results
Fixed issue where the mean would sometimes be displayed into of the additive effect
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/trait.py2
-rw-r--r--wqflask/base/webqtlCaseData.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index c8c503e2..295502b3 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -131,7 +131,7 @@ class GeneralTrait(object):
if self.mean == "":
mean = "N/A"
else:
- mean = "%.3f" % round(float(self.additive), 2)
+ mean = "%.3f" % round(float(self.mean), 2)
if self.additive == "":
additive = "N/A"
else:
diff --git a/wqflask/base/webqtlCaseData.py b/wqflask/base/webqtlCaseData.py
index 2f88f778..627b2f6c 100644
--- a/wqflask/base/webqtlCaseData.py
+++ b/wqflask/base/webqtlCaseData.py
@@ -66,7 +66,7 @@ class webqtlCaseData(object):
@property
def display_value(self):
- if self.value:
+ if self.value != None:
return "%2.3f" % self.value
else:
return "x"