From ad7a2baa50e602c613fd4eba2f41cae7a2b75577 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 12 Jun 2017 15:52:02 +0000 Subject: Fixed issue where 0.0 values would be converted into X's on the trait page --- wqflask/base/webqtlCaseData.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wqflask/base/webqtlCaseData.py') diff --git a/wqflask/base/webqtlCaseData.py b/wqflask/base/webqtlCaseData.py index 845a7224..24de8dcb 100644 --- a/wqflask/base/webqtlCaseData.py +++ b/wqflask/base/webqtlCaseData.py @@ -44,9 +44,9 @@ class webqtlCaseData(object): def __repr__(self): str = " " - if self.value: + if self.value != None: str += "value=%2.3f" % self.value - if self.variance: + if self.variance != None: str += " variance=%2.3f" % self.variance if self.num_cases: str += " ndata=%d" % self.num_cases @@ -66,14 +66,14 @@ class webqtlCaseData(object): @property def display_value(self): - if self.value: + if self.value != None: return "%2.3f" % self.value else: return "x" @property def display_variance(self): - if self.variance: + if self.variance != None: return "%2.3f" % self.variance else: return "x" -- cgit v1.2.3