Mask false lgtm positive

This commit is contained in:
2021-05-28 17:08:05 +02:00
parent 33916d671e
commit 27f772e496

View File

@@ -178,7 +178,10 @@ class MFS:
float float
The merit of the feature set passed 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 rff = 0.0
k = len(features) k = len(features)
for pair in list(combinations(features, 2)): for pair in list(combinations(features, 2)):