Added doc strings to EasyGA ga class and attributes class.

This commit is contained in:
danielwilczak101
2020-11-03 02:32:20 -05:00
parent d4177b08a5
commit ba2f076a2b
2 changed files with 24 additions and 6 deletions

View File

@ -20,8 +20,14 @@ from attributes import attributes
class GA(attributes):
"""GA is the main class in EasyGA. Everything is run through the ga
class. The GA class inherites all the default ga attributes from the
attributes class.
An extensive wiki going over all major functions can be found at
https://github.com/danielwilczak101/EasyGA/wiki
"""
# Inhert all the ga attributes from the attributes class.
def __init__(self,
chromosome_length = None,
population_size = None,
@ -51,7 +57,7 @@ class GA(attributes):
mutation_individual_impl = None,
mutation_population_impl = None,
termination_impl = None
):
):
super(GA, self).__init__(
chromosome_length,
population_size,