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):