aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-08-25 17:39:02 +0000
committerzsloan2021-08-25 17:39:02 +0000
commit3fd1d766fcf38f5a147c01b1c397469139c9080d (patch)
tree0903c2193c38c383cb87b7572551a44497468252
parent8a8dcba497e8f4210329f42cd4b4e766d95a36fc (diff)
downloadgenenetwork2-3fd1d766fcf38f5a147c01b1c397469139c9080d.tar.gz
Fix issue that could cause mapping_scale to not be set correctly in show_trait.py
-rw-r--r--wqflask/wqflask/show_trait/show_trait.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py
index 36e69fa3..80f5d117 100644
--- a/wqflask/wqflask/show_trait/show_trait.py
+++ b/wqflask/wqflask/show_trait/show_trait.py
@@ -300,7 +300,7 @@ class ShowTrait:
hddn['compare_traits'] = []
hddn['export_data'] = ""
hddn['export_format'] = "excel"
- if len(self.scales_in_geno) < 2:
+ if len(self.scales_in_geno) < 2 and bool(self.scales_in_geno):
hddn['mapping_scale'] = self.scales_in_geno[list(
self.scales_in_geno.keys())[0]][0][0]