mg-pso-gui 0.1.33__py3-none-any.whl → 0.1.35__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.1.33
3
+ Version: 0.1.35
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,7 +1,7 @@
1
1
  mgpsogui/__init__.py,sha256=q7AfBjeJABnFtbsZnsObpUwaXKPDVYtz46G6MKXLF74,42
2
2
  mgpsogui/mgpsogui.py,sha256=NIZmyNcbwC8EgSwf1ubdMUSJscrIEgoD4jLYziqHQ-k,148
3
3
  mgpsogui/start.yaml,sha256=ZjCVLb-MLqAxrGRm9kA7_SDpa-45EuKIELNQ2QqCAiU,4713
4
- mgpsogui/gui/HomePage.py,sha256=y2CSgEzkKGNOjIMqvCud7774GXkqn_05mkJQAM6-xB4,22832
4
+ mgpsogui/gui/HomePage.py,sha256=7cPWh2UIiNL8SX6DGSUmTKYBs34hOVujbqkP2bQcKr8,23014
5
5
  mgpsogui/gui/OptionManager.py,sha256=bFN2jWJbx1Din3waOFLmbWGt0BXD_KthGJ8Mgue_FEE,11712
6
6
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=KyIoHlMKD9nfQqHeGJwRDA4RCoe4UykjB2l6xMTKK_M,10486
@@ -17,8 +17,8 @@ mgpsogui/gui/SetupTab/SetupTab.py,sha256=Doy_6xLq1BjhLTFHRQm7CAbpQzUnNJW4KkBcdfr
17
17
  mgpsogui/gui/SetupTab/StaticParameterView.py,sha256=iEG-UpBBlAJabZo3MG768oLqOROjUPc23tKOSd47IUc,2739
18
18
  mgpsogui/gui/SetupTab/StepView.py,sha256=oG5Q-3xpTRP1f_PbNvohKctrbpD63zLAJzHD00bN44k,5531
19
19
  mgpsogui/gui/SetupTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
- mgpsogui/gui/VisualizeTab/SideBar.py,sha256=sWDSfFqTm7n8svFKsb1mPhXsp7qi4sRxur6vox3GvnQ,2283
21
- mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=dqba7BDwwcCB8Rgff7AuHZSTchfyG64k4EIt88qsiNE,3540
20
+ mgpsogui/gui/VisualizeTab/SideBar.py,sha256=LhK54dPei-P0lo3XM49D30G-GAbQm_1f7rPA1nbMWCo,3470
21
+ mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=oW_L4nljdA8cVGaJgl-EL9_ZNkqiRrbgfxe68f2gqkU,3438
22
22
  mgpsogui/gui/VisualizeTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  mgpsogui/gui/images/IGOW 4 Logo.png,sha256=JixNXz5gOEj898VF-_PHthAlGU-6W-y9ucb4EVNPtjs,433752
24
24
  mgpsogui/gui/images/collapse.png,sha256=yicb16LaY7Nl5q9V8HHlht-Fbg5xU-l4_LJ_Arfmu1c,2989
@@ -45,8 +45,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
45
45
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
46
46
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
47
47
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
48
- mg_pso_gui-0.1.33.dist-info/METADATA,sha256=H3J-hvodAN-cP_bLxn-A3qmZhh_w9w8gsIFiiSsgL2Q,9458
49
- mg_pso_gui-0.1.33.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
50
- mg_pso_gui-0.1.33.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
51
- mg_pso_gui-0.1.33.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
52
- mg_pso_gui-0.1.33.dist-info/RECORD,,
48
+ mg_pso_gui-0.1.35.dist-info/METADATA,sha256=WCFOpiVyRYfIslPsp8iT0RbVSiLo7RGWqVC1kH6vo3A,9458
49
+ mg_pso_gui-0.1.35.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
50
+ mg_pso_gui-0.1.35.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
51
+ mg_pso_gui-0.1.35.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
52
+ mg_pso_gui-0.1.35.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -62,6 +62,12 @@ class App(customtkinter.CTk):
62
62
 
63
63
  self.option_manager = om.OptionManager()
64
64
 
65
+ self.graph_selector_value = tk.StringVar()
66
+ self.graph_selector_value.set("Best Cost Stacked")
67
+
68
+ self.selected_csv = tk.StringVar()
69
+ self.selected_csv.set("No files found...")
70
+
65
71
  self.running_config = None
66
72
  self.selected_graph_name = None
67
73
 
@@ -178,8 +184,8 @@ class App(customtkinter.CTk):
178
184
  self.after(1000, self.running_loop)
179
185
 
180
186
  def update_graph(self, value):
181
- GraphGenerator.generate_graphs(self)
182
187
  self.vis_sidebar.refresh()
188
+ GraphGenerator.generate_graphs(self)
183
189
 
184
190
  '''def _resize_image(self, event):
185
191
  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
 
@@ -52,5 +53,31 @@ class SideBar(CTkScrollableFrame):
52
53
  self.graph_label = CTkLabel(self.containerFrame, text="Calibrated Parameters")
53
54
  self.graph_label.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
54
55
  elif (selected_graph == "Custom CSV"):
55
- self.graph_label = CTkLabel(self.containerFrame, text="Custom CSV")
56
- self.graph_label.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
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
+ if (len(name_list) == 0):
72
+ name_list.append("No files found...")
73
+ else:
74
+ if (self.home_page.selected_csv.get() not in name_list):
75
+ self.home_page.selected_csv.set(name_list[0])
76
+
77
+ print("PATH LIST")
78
+ print(path_list)
79
+ print("NAME LIST")
80
+ print(name_list)
81
+
82
+ self.home_page.csv_file_selector = CTkOptionMenu(self.containerFrame, values=name_list, variable=self.home_page.selected_csv, command=self.home_page.update_graph)
83
+ self.home_page.csv_file_selector.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
@@ -61,8 +61,6 @@ def create_tab(self, tab):
61
61
  self.graph_container.grid_columnconfigure(0, weight=1)
62
62
  self.graph_container.grid_rowconfigure(0, weight=1)
63
63
 
64
- self.graph_selector_value = tk.StringVar()
65
- self.graph_selector_value.set("Best Cost Stacked")
66
64
  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
65
  self.graph_selector.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
68
66