From 67e73487f8e30ef5759dd4ffd228b55045d951bb Mon Sep 17 00:00:00 2001 From: danielwilczak101 <44122838+danielwilczak101@users.noreply.github.com> Date: Tue, 26 Jan 2021 21:44:42 -0600 Subject: [PATCH] Updated naming convetions. --- EasyGA.py | 4 ++-- attributes.py | 6 +++--- database/matplotlib_graph.py | 3 ++- examples/{Fitness_Examples.py => Fitness.py} | 0 examples/{test_methods.py => test_Fitness.py} | 0 5 files changed, 7 insertions(+), 6 deletions(-) rename examples/{Fitness_Examples.py => Fitness.py} (100%) rename examples/{test_methods.py => test_Fitness.py} (100%) diff --git a/EasyGA.py b/EasyGA.py index 1032660..d77b4ec 100644 --- a/EasyGA.py +++ b/EasyGA.py @@ -1,4 +1,4 @@ -# Import math for square root (ga.dist()) and ceil (crossover methods) +# Import math for square root (ga.dist()) and ceil (crossover methods) import math # Import random for many methods @@ -13,7 +13,7 @@ from structure import Chromosome as make_chromosome from structure import Gene as make_gene # Misc. Methods -from examples import Fitness_Examples +from examples import Fitness from termination import Termination # Parent/Survivor Selection Methods diff --git a/attributes.py b/attributes.py index 14d9f4e..6a89380 100644 --- a/attributes.py +++ b/attributes.py @@ -14,7 +14,7 @@ from structure import Chromosome as make_chromosome from structure import Gene as make_gene # Misc. Methods -from examples import Fitness_Examples +from examples import Fitness from termination import Termination # Parent/Survivor Selection Methods @@ -37,14 +37,14 @@ import matplotlib.pyplot as plt class Attributes: """Default GA attributes can be found here. If any attributes have not been set then they will fall back onto the default attribute. All - attributes have been catigorized to explain sections in the ga process.""" + attributes have been catigorized to explain sections in the ga process.""" #=====================# # Default GA methods: # #=====================# # Default EasyGA implimentation structure - fitness_function_impl = Fitness_Examples.is_it_5 + fitness_function_impl = Fitness.is_it_5 make_population = make_population make_chromosome = make_chromosome make_gene = make_gene diff --git a/database/matplotlib_graph.py b/database/matplotlib_graph.py index f74be6d..9cca0b7 100644 --- a/database/matplotlib_graph.py +++ b/database/matplotlib_graph.py @@ -2,7 +2,8 @@ import matplotlib.pyplot as plt class Matplotlib_Graph: - """Prebuilt graphing functions to make visual represention of fitness data. """ + """Prebuilt graphing functions to make visual + represention of fitness data.""" # Common graphing functions type_of_graph_dict = { diff --git a/examples/Fitness_Examples.py b/examples/Fitness.py similarity index 100% rename from examples/Fitness_Examples.py rename to examples/Fitness.py diff --git a/examples/test_methods.py b/examples/test_Fitness.py similarity index 100% rename from examples/test_methods.py rename to examples/test_Fitness.py