Skip to content

Commit

Permalink
Fixed ES warnings
Browse files Browse the repository at this point in the history
The warning has been fixed by using the .tolist() function in order for the comparison to be between native Python objects
  • Loading branch information
sisco0 committed Mar 27, 2021
1 parent 7affc1a commit 00aa68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NiaPy/algorithms/basic/es.py
Expand Up @@ -326,7 +326,7 @@ def changeCount(self, c, cn):
"""
k = 0
for e in cn:
if e not in c: k += 1
if e not in c.tolist(): k += 1
return k

def mutateRand(self, pop, task):
Expand Down

0 comments on commit 00aa68b

Please sign in to comment.