changes
This commit is contained in:
@ -86,6 +86,12 @@ class Attributes:
|
|||||||
fitness DOUBLE,
|
fitness DOUBLE,
|
||||||
chromosome text
|
chromosome text
|
||||||
); """,
|
); """,
|
||||||
|
sql_create_config_structure = """CREATE TABLE IF NOT EXISTS config (
|
||||||
|
id integer PRIMARY KEY,
|
||||||
|
generation integer NOT NULL,
|
||||||
|
fitness DOUBLE,
|
||||||
|
chromosome text
|
||||||
|
); """,
|
||||||
Graph = matplotlib_graph.Matplotlib_Graph
|
Graph = matplotlib_graph.Matplotlib_Graph
|
||||||
):
|
):
|
||||||
|
|
||||||
@ -137,6 +143,7 @@ class Attributes:
|
|||||||
self.database = Database()
|
self.database = Database()
|
||||||
self.database_name = deepcopy(database_name)
|
self.database_name = deepcopy(database_name)
|
||||||
self.sql_create_data_structure = deepcopy(sql_create_data_structure)
|
self.sql_create_data_structure = deepcopy(sql_create_data_structure)
|
||||||
|
self.sql_create_config_structure = deepcopy(sql_create_config_structure)
|
||||||
|
|
||||||
# Graphing variables
|
# Graphing variables
|
||||||
self.graph = Graph(self.database)
|
self.graph = Graph(self.database)
|
||||||
|
|||||||
@ -88,7 +88,7 @@ class SQL_Database:
|
|||||||
if self.conn is not None:
|
if self.conn is not None:
|
||||||
# create projects table
|
# create projects table
|
||||||
self.create_table(ga.sql_create_data_structure)
|
self.create_table(ga.sql_create_data_structure)
|
||||||
|
self.create_table(ga.sql_create_config_structure)
|
||||||
else:
|
else:
|
||||||
print("Error! cannot create the database connection.")
|
print("Error! cannot create the database connection.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user