mg-pso-gui 0.1.28__py3-none-any.whl → 0.1.29__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.
- {mg_pso_gui-0.1.28.dist-info → mg_pso_gui-0.1.29.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.1.28.dist-info → mg_pso_gui-0.1.29.dist-info}/RECORD +8 -7
- mgpsogui/gui/HomePage.py +1 -0
- mgpsogui/gui/VisualizeTab/SideBar.py +53 -0
- mgpsogui/gui/VisualizeTab/VisualizeTab.py +7 -1
- {mg_pso_gui-0.1.28.dist-info → mg_pso_gui-0.1.29.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.1.28.dist-info → mg_pso_gui-0.1.29.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.1.28.dist-info → mg_pso_gui-0.1.29.dist-info}/top_level.txt +0 -0
|
@@ -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=
|
|
4
|
+
mgpsogui/gui/HomePage.py,sha256=y2CSgEzkKGNOjIMqvCud7774GXkqn_05mkJQAM6-xB4,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,7 +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/
|
|
20
|
+
mgpsogui/gui/VisualizeTab/SideBar.py,sha256=0gC5pmuQz3Ev-FCjH5g5N9oytfFdxLg4tnvzToMCHXo,2061
|
|
21
|
+
mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=wIz2clWFhOQBiypjDNuhhHMqgq1YLrbYoCV33JzpNeA,3527
|
|
21
22
|
mgpsogui/gui/VisualizeTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
23
|
mgpsogui/gui/images/IGOW 4 Logo.png,sha256=JixNXz5gOEj898VF-_PHthAlGU-6W-y9ucb4EVNPtjs,433752
|
|
23
24
|
mgpsogui/gui/images/collapse.png,sha256=yicb16LaY7Nl5q9V8HHlht-Fbg5xU-l4_LJ_Arfmu1c,2989
|
|
@@ -44,8 +45,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
|
|
|
44
45
|
mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
|
|
45
46
|
mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
|
|
46
47
|
mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
|
|
47
|
-
mg_pso_gui-0.1.
|
|
48
|
-
mg_pso_gui-0.1.
|
|
49
|
-
mg_pso_gui-0.1.
|
|
50
|
-
mg_pso_gui-0.1.
|
|
51
|
-
mg_pso_gui-0.1.
|
|
48
|
+
mg_pso_gui-0.1.29.dist-info/METADATA,sha256=CzoYNRm9DzqmTEHsQyEYHVGR3rupMXR0YodPbiCkZlY,9458
|
|
49
|
+
mg_pso_gui-0.1.29.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
|
50
|
+
mg_pso_gui-0.1.29.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
|
51
|
+
mg_pso_gui-0.1.29.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
|
52
|
+
mg_pso_gui-0.1.29.dist-info/RECORD,,
|
mgpsogui/gui/HomePage.py
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
from customtkinter import CTkScrollableFrame
|
|
2
|
+
from customtkinter import CTkFrame
|
|
3
|
+
from customtkinter import CTkLabel
|
|
4
|
+
from customtkinter import CTkButton
|
|
5
|
+
from customtkinter import CTkEntry
|
|
6
|
+
from customtkinter import CTkTextbox
|
|
7
|
+
from customtkinter import CTkImage
|
|
8
|
+
from PIL import Image
|
|
9
|
+
import os
|
|
10
|
+
|
|
11
|
+
class SideBar(CTkScrollableFrame):
|
|
12
|
+
def __init__(self, *args,
|
|
13
|
+
option_manager: None,
|
|
14
|
+
home_page: None,
|
|
15
|
+
**kwargs):
|
|
16
|
+
super().__init__(*args, **kwargs)
|
|
17
|
+
|
|
18
|
+
self.option_manager = option_manager
|
|
19
|
+
self.home_page = home_page
|
|
20
|
+
|
|
21
|
+
self.render()
|
|
22
|
+
|
|
23
|
+
def clear(self):
|
|
24
|
+
self.containerFrame.destroy()
|
|
25
|
+
|
|
26
|
+
def refresh(self):
|
|
27
|
+
self.clear()
|
|
28
|
+
self.render()
|
|
29
|
+
|
|
30
|
+
def render(self):
|
|
31
|
+
|
|
32
|
+
self.containerFrame = CTkFrame(self)
|
|
33
|
+
self.containerFrame.grid(row=0, column=0, padx=(
|
|
34
|
+
0, 0), pady=(0, 0), sticky="nsew")
|
|
35
|
+
self.containerFrame.grid_columnconfigure((0, 1), weight=1)
|
|
36
|
+
|
|
37
|
+
selected_graph = self.home_page.selected_graph_name
|
|
38
|
+
if (selected_graph == "best_cost_stacked"):
|
|
39
|
+
self.graph_label = CTkLabel(self.containerFrame, text="Best Cost Stacked")
|
|
40
|
+
self.graph_label.grid(row=1, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
|
41
|
+
pass
|
|
42
|
+
elif (selected_graph == "best_cost_by_round"):
|
|
43
|
+
self.graph_label = CTkLabel(self.containerFrame, text="Best Cost by Round")
|
|
44
|
+
self.graph_label.grid(row=1, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
|
45
|
+
pass
|
|
46
|
+
elif (selected_graph == "table"):
|
|
47
|
+
self.graph_label = CTkLabel(self.containerFrame, text="Iteration Table")
|
|
48
|
+
self.graph_label.grid(row=1, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
|
49
|
+
pass
|
|
50
|
+
elif (selected_graph == "calibrated_params_by_round"):
|
|
51
|
+
self.graph_label = CTkLabel(self.containerFrame, text="Calibrated Parameters")
|
|
52
|
+
self.graph_label.grid(row=1, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
|
53
|
+
pass
|
|
@@ -5,6 +5,8 @@ import os
|
|
|
5
5
|
import platform
|
|
6
6
|
import subprocess
|
|
7
7
|
|
|
8
|
+
from . import SideBar
|
|
9
|
+
|
|
8
10
|
def create_tab(self, tab):
|
|
9
11
|
|
|
10
12
|
def open_graph_in_browser():
|
|
@@ -45,7 +47,7 @@ def create_tab(self, tab):
|
|
|
45
47
|
self.graph_label.update_idletasks()
|
|
46
48
|
|
|
47
49
|
|
|
48
|
-
tab.grid_columnconfigure(0, weight=
|
|
50
|
+
tab.grid_columnconfigure(0, weight=2)
|
|
49
51
|
tab.grid_columnconfigure(1, weight=8)
|
|
50
52
|
tab.grid_rowconfigure(0, weight=1)
|
|
51
53
|
|
|
@@ -64,6 +66,10 @@ def create_tab(self, tab):
|
|
|
64
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)
|
|
65
67
|
self.graph_selector.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
|
66
68
|
|
|
69
|
+
# Create SideBar
|
|
70
|
+
self.vis_sidebar = SideBar.SideBar(self.graph_sidebar, option_manager=self.option_manager, home_page=self)
|
|
71
|
+
self.vis_sidebar.grid(row=1, column=0, rowspawn=8, padx=(0, 0), pady=(0, 0), sticky="nsew")
|
|
72
|
+
|
|
67
73
|
# Add a button to call open_graph_in_browser
|
|
68
74
|
self.graph_button = customtkinter.CTkButton(self.graph_sidebar, text="Open in Browser", command=open_graph_in_browser)
|
|
69
75
|
self.graph_button.grid(row=9, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|