From aca81429debef16db1ad3cca9d534fca394f1a26 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 3 Jan 2022 14:37:18 +0300 Subject: 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. --- gn3/db/partial_correlations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/db') 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( { -- cgit v1.2.3