aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/webqtlCaseData.py
diff options
context:
space:
mode:
authorzsloan2017-07-06 17:03:59 +0000
committerzsloan2017-07-06 17:03:59 +0000
commit97ee021da1250a63e508461b35188bc875e537e7 (patch)
tree2111574cac4f9408aa6223e10391d2a9a3f15244 /wqflask/base/webqtlCaseData.py
parent1364fc973518aa13643c3d604a5ccc710bd76e0d (diff)
parentd86f07f616d6892707dd26c87bf70db1a50f070a (diff)
downloadgenenetwork2-97ee021da1250a63e508461b35188bc875e537e7.tar.gz
Merge branch 'testing' of https://github.com/genenetwork/genenetwork2
Diffstat (limited to 'wqflask/base/webqtlCaseData.py')
-rw-r--r--wqflask/base/webqtlCaseData.py8
1 files changed, 4 insertions, 4 deletions
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 = "<webqtlCaseData> "
- 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"