From 730ac90d144feb1efc008fdb173424ff2812cfca Mon Sep 17 00:00:00 2001 From: Lei Yan Date: Thu, 10 Sep 2015 18:44:59 +0000 Subject: Fixed "TypeError: float argument required, not NoneType" about mean. Committer: Lei Yan On branch master --- wqflask/base/data_set.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index e98258f6..e2db9ad7 100755 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -1171,7 +1171,8 @@ class MrnaAssayDataSet(DataSet): mean = result[0] if result else 0 - this_trait.mean = "%2.3f" % mean + if mean: + this_trait.mean = "%2.3f" % mean #LRS and its location this_trait.LRS_score_repr = 'N/A' -- cgit v1.2.3