From af1e55548e0deb765b7ac4a83d485dbdcc6ea6fd Mon Sep 17 00:00:00 2001 From: LucaCappelletti94 Date: Sat, 31 Oct 2020 13:34:14 +0100 Subject: [PATCH] Restored previous get best match --- barplots/utils/get_best_match.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barplots/utils/get_best_match.py b/barplots/utils/get_best_match.py index a7b9d50..277c1a6 100644 --- a/barplots/utils/get_best_match.py +++ b/barplots/utils/get_best_match.py @@ -6,7 +6,7 @@ def get_best_match(mapping, index): key: (re.compile(key),) if isinstance(key, str) else [ re.compile(k) for k in key ] - for key in str(mapping) + for key in mapping } if not isinstance(index, tuple): index = (index,)