From 8e8cb3540565edb3d221ef08fe3863449c29c21d Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 15 Nov 2016 19:27:36 +0000 Subject: 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 --- wqflask/base/trait.py | 2 +- wqflask/base/webqtlCaseData.py | 2 +- 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" -- cgit v1.2.3