diff options
author | Lei Yan | 2017-08-02 22:47:35 +0000 |
---|---|---|
committer | Lei Yan | 2017-08-02 22:47:35 +0000 |
commit | b1dd8959f451f9aabf9a46a98071888053e6266e (patch) | |
tree | 19762ae3af9630c8f280634e6af4e6ad59cb4f34 /wqflask/base/webqtlCaseData.py | |
parent | 255aace685b7919808e93ad3c8c47334b0496eb9 (diff) | |
parent | d86f07f616d6892707dd26c87bf70db1a50f070a (diff) | |
download | genenetwork2-b1dd8959f451f9aabf9a46a98071888053e6266e.tar.gz |
Merge branch 'testing' of github.com:genenetwork/genenetwork2
Diffstat (limited to 'wqflask/base/webqtlCaseData.py')
-rw-r--r-- | wqflask/base/webqtlCaseData.py | 8 |
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" |