From b004beccc5679748f4d39de1a5534d815a8cb234 Mon Sep 17 00:00:00 2001 From: SimpleArt <71458112+SimpleArt@users.noreply.github.com> Date: Thu, 6 May 2021 18:28:41 -0400 Subject: [PATCH] Fixed typo --- EasyGA/EasyGA.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EasyGA/EasyGA.py b/EasyGA/EasyGA.py index b57176e..d204fe2 100644 --- a/EasyGA/EasyGA.py +++ b/EasyGA/EasyGA.py @@ -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: