aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-01-03 14:37:18 +0300
committerFrederick Muriuki Muriithi2022-01-10 08:28:33 +0300
commitaca81429debef16db1ad3cca9d534fca394f1a26 (patch)
tree85fa778eaffcd2a88904b27ff5997123cab88b11 /gn3/db
parentff463fd79c76be344fe8d01e17202db010a5018d (diff)
downloadgenenetwork3-aca81429debef16db1ad3cca9d534fca394f1a26.tar.gz
Convert keys to string
* Some traits have a name composed of all numerals, which leads to the names being interpreted as numbers. This commit forces them to string to avoid subtle bugs where the code fails.
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/partial_correlations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/partial_correlations.py b/gn3/db/partial_correlations.py
index 8c4ec65..e2272be 100644
--- a/gn3/db/partial_correlations.py
+++ b/gn3/db/partial_correlations.py
@@ -263,7 +263,7 @@ def merge_traits_and_info(traits, info_results):
"""
if info_results:
results = {
- trait["trait_name"]: trait for trait in info_results
+ str(trait["trait_name"]): trait for trait in info_results
}
return tuple(
{