From 097e219a038c97a6f292ff23b6588591d7384997 Mon Sep 17 00:00:00 2001 From: SimpleArt <71458112+SimpleArt@users.noreply.github.com> Date: Tue, 17 Nov 2020 08:42:59 -0500 Subject: [PATCH] Fixed population print --- src/structure/population.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structure/population.py b/src/structure/population.py index a6bddce..7f873cb 100644 --- a/src/structure/population.py +++ b/src/structure/population.py @@ -152,7 +152,7 @@ class Population: def __repr__(self): """Returns a backend string representation of the entire population""" return ''.join( - 'Chromosome - {index} {self.get_chromosome(index)} ' + - '/ Fitness = {self.get_chromosome(index).get_fitness()}\n' + f'Chromosome - {index} {self.get_chromosome(index)} ' + + f'/ Fitness = {self.get_chromosome(index).get_fitness()}\n' for index in range(self.size()) )