diff options
author | Frederick Muriuki Muriithi | 2022-01-03 14:37:18 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-01-10 08:28:33 +0300 |
commit | aca81429debef16db1ad3cca9d534fca394f1a26 (patch) | |
tree | 85fa778eaffcd2a88904b27ff5997123cab88b11 /gn3/db | |
parent | ff463fd79c76be344fe8d01e17202db010a5018d (diff) | |
download | genenetwork3-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.py | 2 |
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( { |