mg-pso-gui 0.2.72__py3-none-any.whl → 0.2.73__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.2.72
3
+ Version: 0.2.73
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=mkTh6ktv5vu8GVbw0OzLzDOi-KxUYZSjjtp2LKyZ_Yo,22005
4
+ mgpsogui/gui/HomePage.py,sha256=rQeP8iMT7yAFIMYCxmzyOswWXk8gMG78LAyQBFg5GYY,22041
5
5
  mgpsogui/gui/OptionManager.py,sha256=_TT-RSUYdRTzoBr8STx_XDdPt--31byQsL8zmxM7quA,22003
6
6
  mgpsogui/gui/OptionManager_backup.py,sha256=TCWfPnHL2foN5id47jsi267lamRG6yGU6y_M29eOOJk,18530
7
7
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -26,7 +26,7 @@ mgpsogui/gui/SetupTab/StepView.py,sha256=M_7gj3TqszMs0pVBnGmZZDr96NWZg5mfKyX1Ne1
26
26
  mgpsogui/gui/SetupTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  mgpsogui/gui/VisualizeTab/MatrixEditor.py,sha256=Gzyl2hRgjIfO5n0bCZZoXp_vOFvfsJPaGXDUMeRQg10,3171
28
28
  mgpsogui/gui/VisualizeTab/SideBar.py,sha256=wPjzA8ZZsCTxBKN0_6-_ABtU5BeHqytNAWfKCWAPoe8,22106
29
- mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=6ybwiVOXw5NAhG9ShnwdpbSfCHjNs-50dvEN7SxGmjU,6696
29
+ mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=QsaPesrqN2tyWF-_suR_EwTDuW1ejdV_CA8hu1xMUsE,7125
30
30
  mgpsogui/gui/VisualizeTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  mgpsogui/gui/defaults/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  mgpsogui/gui/defaults/optimization.json,sha256=bd_XxTKtKN_ErZoxtZmhltWID-sDJAdxzsqt9qBSsh8,3629
@@ -69,8 +69,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
69
69
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
70
70
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
71
71
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
72
- mg_pso_gui-0.2.72.dist-info/METADATA,sha256=2greTlJ2VFPAnsUIkNkLYFU9JPKlNFcCm09sCUdI-cQ,9455
73
- mg_pso_gui-0.2.72.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
74
- mg_pso_gui-0.2.72.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
75
- mg_pso_gui-0.2.72.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
76
- mg_pso_gui-0.2.72.dist-info/RECORD,,
72
+ mg_pso_gui-0.2.73.dist-info/METADATA,sha256=-l4qrzrujTJdbAJVfsJQr0HLOl7HU7sNtGJEvSrG3c8,9455
73
+ mg_pso_gui-0.2.73.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
74
+ mg_pso_gui-0.2.73.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
75
+ mg_pso_gui-0.2.73.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
76
+ mg_pso_gui-0.2.73.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -237,6 +237,8 @@ class App(customtkinter.CTk):
237
237
  self.service_url.configure(textvariable=self.option_manager.get("url"))
238
238
  self.graph_theme.configure(variable=self.option_manager.get("graph_theme"))
239
239
  self.graph_selector.configure(variable=self.option_manager.get("selected_graph"))
240
+ self.update_graph_selector(mode)
241
+
240
242
 
241
243
  if mode == "Optimization":
242
244
  self.test_button.configure(state="normal")
@@ -8,6 +8,16 @@ import shutil
8
8
 
9
9
  from . import SideBar
10
10
 
11
+ def update_graph_selector(self, mode):
12
+ graph_types = []
13
+ if mode == "Optimization":
14
+ graph_types = ["Best Cost Stacked", "Best Cost by Round", "Custom CSV", "Compare CSV"]
15
+ elif mode == "Sensitivity Analysis":
16
+ graph_types = ["Custom CSV", "Compare CSV"]
17
+ elif mode == "Sampling: Halton" or mode == "Sampling Random":
18
+ graph_types = ["Sampling CSV", "Matrix Editor"]
19
+ self.graph_selector.configure(values=graph_types)
20
+
11
21
  def create_tab(self, tab):
12
22
 
13
23
  def open_graph_in_browser():
@@ -80,7 +90,7 @@ def create_tab(self, tab):
80
90
  subprocess.Popen(["open", os.path.join(folder, self.selected_graph_name + "_package")])
81
91
  else:
82
92
  subprocess.Popen(["xdg-open", os.path.join(folder, self.selected_graph_name + "_package")])
83
-
93
+
84
94
  def _resize_image(event):
85
95
  self.graph_label.update_idletasks()
86
96
  new_width = self.graph_label.winfo_width()
@@ -116,9 +126,12 @@ def create_tab(self, tab):
116
126
  self.graph_container.grid_columnconfigure(0, weight=1)
117
127
  self.graph_container.grid_rowconfigure(0, weight=1)
118
128
 
119
- graph_types = ["Best Cost Stacked", "Best Cost by Round", "Custom CSV", "Compare CSV", "Sampling CSV", "Matrix Editor"]
129
+ graph_types = []
120
130
  self.graph_selector = customtkinter.CTkOptionMenu(self.graph_sidebar, values=graph_types, variable=self.option_manager.get("selected_graph"), command=self.update_graph)
121
131
  self.graph_selector.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
132
+
133
+ mode = self.option_manager.get_mode()
134
+ self.update_graph_selector(mode)
122
135
 
123
136
  # Create SideBar
124
137
  self.vis_sidebar = SideBar.SideBar(self.graph_sidebar, option_manager=self.option_manager, home_page=self, fg_color="transparent")