aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set.py
diff options
context:
space:
mode:
authorZachary Sloan2013-06-12 22:45:57 +0000
committerZachary Sloan2013-06-12 22:45:57 +0000
commit7938d8c6cbdfe866ebf9ec62dec0fe5c43cf2d6f (patch)
tree56480908785e871bcc82d47101d0d7b81afe7917 /wqflask/base/data_set.py
parent43eb99c11d8ef371bba926a3a63bf599b56820ae (diff)
downloadgenenetwork2-7938d8c6cbdfe866ebf9ec62dec0fe5c43cf2d6f.tar.gz
Fixed a couple issues with the template that caused the
regular search results and show trait page to not display
Diffstat (limited to 'wqflask/base/data_set.py')
-rwxr-xr-xwqflask/base/data_set.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index d7328441..9b0a3dcc 100755
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -735,8 +735,10 @@ class MrnaAssayDataSet(DataSet):
trait_location_value = 1000000
if this_trait.chr and this_trait.mb:
+ print("this_trait.chr is:", this_trait.chr)
+ print("this_trait.mb is:", this_trait.mb)
try:
- trait_location_value = int(this_trait.chr)*1000 + this_trait.mb
+ trait_location_value = float(this_trait.chr)*1000 + float(this_trait.mb)
except:
if this_trait.chr.upper() == 'X':
trait_location_value = 20*1000 + this_trait.mb