Fixed typo

This commit is contained in:
SimpleArt
2021-05-06 18:28:41 -04:00
parent e440a01ad7
commit b004beccc5

View File

@ -301,7 +301,7 @@ class GA(Attributes):
# Sort by fitness, assuming None should be moved to the end of the list
def key(chromosome):
if chromosome.fitness is not None:
return chromosome_fitness
return chromosome.fitness
elif reverse:
return float('-inf')
else: