aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2015-09-10 13:50:45 -0500
committerzsloan2015-09-10 13:50:45 -0500
commit962c80e669d2d2fe7ef6dc8c11fb827ebe7926bc (patch)
treec3858fc25fe0b4ddda4b95306deca4c071af7000 /wqflask
parentf8c8a5164eeb3ddb3c4b5cca8610729f9b549b98 (diff)
parent730ac90d144feb1efc008fdb173424ff2812cfca (diff)
downloadgenenetwork2-962c80e669d2d2fe7ef6dc8c11fb827ebe7926bc.tar.gz
Merge pull request #117 from lyan6/master
Fixed "TypeError: float argument required, not NoneType" about mean.
Diffstat (limited to 'wqflask')
-rwxr-xr-xwqflask/base/data_set.py3
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'