From 27f772e496094fd6c4f192df466adb49dfcf878b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Fri, 28 May 2021 17:08:05 +0200 Subject: [PATCH] Mask false lgtm positive --- mfs/Selection.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mfs/Selection.py b/mfs/Selection.py index 0288c98..d971131 100755 --- a/mfs/Selection.py +++ b/mfs/Selection.py @@ -178,7 +178,10 @@ class MFS: float The merit of the feature set passed """ - rcf = self._su_labels[features].sum() + # lgtm has already recognized that this is a false positive + rcf = self._su_labels[ + features + ].sum() # lgtm [py/hash-unhashable-value] rff = 0.0 k = len(features) for pair in list(combinations(features, 2)):