aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2020-11-10 13:36:13 -0600
committerzsloan2020-11-10 13:36:13 -0600
commit61280ad47d8c0486b776011391deadcf7df39819 (patch)
treed0354634d433f383f123977bf5a55a16d5987d0f
parentddcd54b505384b3d8f70c82cc97b9781672c5fb6 (diff)
downloadgenenetwork2-61280ad47d8c0486b776011391deadcf7df39819.tar.gz
Fixed issue where strain values in bytes needed to be decoded when loading a Temp trait
-rw-r--r--wqflask/wqflask/show_trait/SampleList.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/show_trait/SampleList.py b/wqflask/wqflask/show_trait/SampleList.py
index 37c1d6d5..99ca7f88 100644
--- a/wqflask/wqflask/show_trait/SampleList.py
+++ b/wqflask/wqflask/show_trait/SampleList.py
@@ -35,7 +35,7 @@ class SampleList(object):
# ZS: self.this_trait will be a list if it is a Temp trait
if isinstance(self.this_trait, list):
if (counter <= len(self.this_trait) and
- str(self.this_trait[counter-1]).upper() != 'X'):
+ self.this_trait[counter-1].decode("utf-8").lower() != 'x'):
sample = webqtlCaseData.webqtlCaseData(
name=sample_name,
value=float(self.this_trait[counter-1]))