mg-pso-gui 0.1.32__tar.gz → 0.1.34__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/PKG-INFO +1 -1
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mg_pso_gui.egg-info/PKG-INFO +1 -1
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/HomePage.py +1 -1
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/VisualizeTab/SideBar.py +25 -4
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +1 -1
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/setup.py +1 -1
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mg_pso_gui.egg-info/entry_points.txt +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mg_pso_gui.egg-info/requires.txt +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mg_pso_gui.egg-info/top_level.txt +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/OptionManager.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/RunTab/RunTab.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/RunTab/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/SetupTab/StepView.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/SetupTab/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/images/IGOW 4 Logo.png +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/images/collapse.png +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/images/down.png +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/images/expand.png +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/images/play.png +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/images/refresh.png +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/images/refresh_hd.png +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/images/stop.png +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/images/test.png +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/images/trash.png +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/gui/images/up.png +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/mgpsogui.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/start.yaml +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/GraphGenerator.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/PSORunner.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/recosu/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/recosu/pso/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/recosu/pso/csip_access.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/recosu/pso/pso.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/recosu/utils/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/recosu/utils/plot/__init__.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/recosu/utils/plot/cost_steps.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/recosu/utils/trace_writer.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/mgpsogui/util/recosu/utils/utils.py +0 -0
- {mg-pso-gui-0.1.32 → mg-pso-gui-0.1.34}/setup.cfg +0 -0
|
@@ -178,8 +178,8 @@ class App(customtkinter.CTk):
|
|
|
178
178
|
self.after(1000, self.running_loop)
|
|
179
179
|
|
|
180
180
|
def update_graph(self, value):
|
|
181
|
-
GraphGenerator.generate_graphs(self)
|
|
182
181
|
self.vis_sidebar.refresh()
|
|
182
|
+
GraphGenerator.generate_graphs(self)
|
|
183
183
|
|
|
184
184
|
'''def _resize_image(self, event):
|
|
185
185
|
self.graph_label.update_idletasks()
|
|
@@ -5,6 +5,7 @@ from customtkinter import CTkButton
|
|
|
5
5
|
from customtkinter import CTkEntry
|
|
6
6
|
from customtkinter import CTkTextbox
|
|
7
7
|
from customtkinter import CTkImage
|
|
8
|
+
from customtkinter import CTkOptionMenu
|
|
8
9
|
from PIL import Image
|
|
9
10
|
import os
|
|
10
11
|
|
|
@@ -32,12 +33,10 @@ class SideBar(CTkScrollableFrame):
|
|
|
32
33
|
self.containerFrame = CTkFrame(self)
|
|
33
34
|
self.containerFrame.grid(row=0, column=0, padx=(
|
|
34
35
|
0, 0), pady=(0, 0), sticky="nsew")
|
|
35
|
-
self.containerFrame.grid_columnconfigure(
|
|
36
|
+
self.containerFrame.grid_columnconfigure(0, weight=1)
|
|
36
37
|
|
|
37
38
|
selected_graph = self.home_page.graph_selector_value.get()
|
|
38
39
|
|
|
39
|
-
print("Current Graph: " + selected_graph)
|
|
40
|
-
|
|
41
40
|
if (selected_graph == "Best Cost Stacked"):
|
|
42
41
|
self.graph_label = CTkLabel(self.containerFrame, text="Best Cost Stacked")
|
|
43
42
|
self.graph_label.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
|
@@ -53,4 +52,26 @@ class SideBar(CTkScrollableFrame):
|
|
|
53
52
|
elif (selected_graph == "Calibrated Parameters"):
|
|
54
53
|
self.graph_label = CTkLabel(self.containerFrame, text="Calibrated Parameters")
|
|
55
54
|
self.graph_label.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
|
56
|
-
|
|
55
|
+
elif (selected_graph == "Custom CSV"):
|
|
56
|
+
|
|
57
|
+
info = self.option_manager.get_project_data()
|
|
58
|
+
folder = os.path.join(info['path'], info['name'])
|
|
59
|
+
if not os.path.exists(folder):
|
|
60
|
+
os.makedirs(folder)
|
|
61
|
+
|
|
62
|
+
# Get all CSV files in the folder and add their paths to a list
|
|
63
|
+
path_list = []
|
|
64
|
+
name_list = []
|
|
65
|
+
for root, dirs, files in os.walk(folder):
|
|
66
|
+
for file in files:
|
|
67
|
+
if file.endswith(".csv"):
|
|
68
|
+
path_list.append(os.path.join(root, file))
|
|
69
|
+
name_list.append(file.replace(".csv", ""))
|
|
70
|
+
|
|
71
|
+
print("PATH LIST")
|
|
72
|
+
print(path_list)
|
|
73
|
+
print("NAME LIST")
|
|
74
|
+
print(name_list)
|
|
75
|
+
|
|
76
|
+
self.home_page.csv_file_selector = CTkOptionMenu(self.graph_sidebar, values=["Best Cost Stacked", "Best Cost by Round", "Calibrated Parameters", "Iteration Table", "Custom CSV"], variable=self.graph_selector_value, command=self.update_graph)
|
|
77
|
+
self.home_page.csv_file_selector.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
|
@@ -63,7 +63,7 @@ def create_tab(self, tab):
|
|
|
63
63
|
|
|
64
64
|
self.graph_selector_value = tk.StringVar()
|
|
65
65
|
self.graph_selector_value.set("Best Cost Stacked")
|
|
66
|
-
self.graph_selector = customtkinter.CTkOptionMenu(self.graph_sidebar, values=["Best Cost Stacked", "Best Cost by Round", "Calibrated Parameters", "Iteration Table"], variable=self.graph_selector_value, command=self.update_graph)
|
|
66
|
+
self.graph_selector = customtkinter.CTkOptionMenu(self.graph_sidebar, values=["Best Cost Stacked", "Best Cost by Round", "Calibrated Parameters", "Iteration Table", "Custom CSV"], variable=self.graph_selector_value, command=self.update_graph)
|
|
67
67
|
self.graph_selector.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
|
68
68
|
|
|
69
69
|
# Create SideBar
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|