mg-pso-gui 0.1.32__py3-none-any.whl → 0.1.34__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.32
3
+ Version: 0.1.34
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=ZGDDxUmzbXMqAarqGkW_m9B50wMlPCAP0E-mIfFLXWA,22832
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=tED3G0qAaNI0ANc2muS7G9lJ6477fNJslGfvi8hkQNE,2141
21
- mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=oSa4BLTQ2cLsKY8uEsRUNxgY4FZsftQa9FDbcm4BVOw,3526
20
+ mgpsogui/gui/VisualizeTab/SideBar.py,sha256=Pp6JldUIfDNg3Lj5fF5kTIhxZljacM85bC2vaUgpoMM,3299
21
+ mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=dqba7BDwwcCB8Rgff7AuHZSTchfyG64k4EIt88qsiNE,3540
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.32.dist-info/METADATA,sha256=njuJtY4zQvjPbiF3HxAOFa-zFFvHjCGJ-agjXLnPOPw,9458
49
- mg_pso_gui-0.1.32.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
50
- mg_pso_gui-0.1.32.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
51
- mg_pso_gui-0.1.32.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
52
- mg_pso_gui-0.1.32.dist-info/RECORD,,
48
+ mg_pso_gui-0.1.34.dist-info/METADATA,sha256=Xq1WuyaQz-KDPD9qDF9L8416aUc-OomYhU4esiuGxiQ,9458
49
+ mg_pso_gui-0.1.34.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
50
+ mg_pso_gui-0.1.34.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
51
+ mg_pso_gui-0.1.34.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
52
+ mg_pso_gui-0.1.34.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -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((0, 1), weight=1)
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
- pass
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