diff options
author | Lei Yan | 2015-09-10 18:44:59 +0000 |
---|---|---|
committer | Lei Yan | 2015-09-10 18:44:59 +0000 |
commit | 730ac90d144feb1efc008fdb173424ff2812cfca (patch) | |
tree | d2ef569c16535120db62bccfa11b6b213916d979 /wqflask/base/data_set.py | |
parent | d900509f90f18d4f11310e3caa67f90ba820ae55 (diff) | |
download | genenetwork2-730ac90d144feb1efc008fdb173424ff2812cfca.tar.gz |
Fixed "TypeError: float argument required, not NoneType" about mean.
Committer: Lei Yan <lei@penguin.uthsc.edu>
On branch master
Diffstat (limited to 'wqflask/base/data_set.py')
-rwxr-xr-x | wqflask/base/data_set.py | 3 |
1 files changed, 2 insertions, 1 deletions
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' |