From d8e5296ef5750ca74d04f4b2a04f1856f99a5ed1 Mon Sep 17 00:00:00 2001 From: danielwilczak101 <44122838+danielwilczak101@users.noreply.github.com> Date: Thu, 15 Oct 2020 12:56:59 -0400 Subject: [PATCH] Fixed spacing mistakes and added comments --- src/EasyGA.py | 7 +++++-- src/attributes.py | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/EasyGA.py b/src/EasyGA.py index 0b105b5..2f1955d 100644 --- a/src/EasyGA.py +++ b/src/EasyGA.py @@ -4,8 +4,11 @@ from attributes import attributes class GA(attributes): - def __init__(self): # Inhert all the ga attributes - super(GA, self).__init__() # from the attributes class + + # Inhert all the ga attributes from the attributes class. + def __init__(self): + super(GA, self).__init__() + def evolve_generation(self, number_of_generations = 1, consider_termination = True): """Evolves the ga the specified number of generations.""" diff --git a/src/attributes.py b/src/attributes.py index 7d4e02b..b039742 100644 --- a/src/attributes.py +++ b/src/attributes.py @@ -63,6 +63,7 @@ class attributes: # The type of termination to impliment self.termination_impl = Termination_Methods.generation_based + # Example of how the setter error checking will look like @property def chromosome_length(self):