mg-pso-gui 0.2.73__py3-none-any.whl → 0.2.74__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.73
3
+ Version: 0.2.74
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=rQeP8iMT7yAFIMYCxmzyOswWXk8gMG78LAyQBFg5GYY,22041
4
+ mgpsogui/gui/HomePage.py,sha256=a6L3NxO_LrBWINV2PeV6LsMWyVVtIfcDCEoUBozDWoQ,22425
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=QsaPesrqN2tyWF-_suR_EwTDuW1ejdV_CA8hu1xMUsE,7125
29
+ mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=Ro-K-P7aIcDM5GF-4QkUSo-HeLZANapybU07BRicwVw,6589
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.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,,
72
+ mg_pso_gui-0.2.74.dist-info/METADATA,sha256=5E9Qs5DoMhc0_W1dlF7_B43r4FK-mgab2wdRC167eUs,9455
73
+ mg_pso_gui-0.2.74.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
74
+ mg_pso_gui-0.2.74.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
75
+ mg_pso_gui-0.2.74.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
76
+ mg_pso_gui-0.2.74.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -205,6 +205,7 @@ class App(customtkinter.CTk):
205
205
  ctt(self.download_button, delay=0.1, alpha=0.95, message="Download Results")
206
206
  self.download_button.grid(row=0, column=10, padx=(5, 20), pady=header_padding_y)
207
207
 
208
+ self.refresh_step_view(0)
208
209
  self.after(1000, self.running_loop)
209
210
 
210
211
  def update_graph(self, value):
@@ -237,7 +238,14 @@ class App(customtkinter.CTk):
237
238
  self.service_url.configure(textvariable=self.option_manager.get("url"))
238
239
  self.graph_theme.configure(variable=self.option_manager.get("graph_theme"))
239
240
  self.graph_selector.configure(variable=self.option_manager.get("selected_graph"))
240
- self.update_graph_selector(mode)
241
+ graph_types = []
242
+ if mode == "Optimization":
243
+ graph_types = ["Best Cost Stacked", "Best Cost by Round", "Custom CSV", "Compare CSV"]
244
+ elif mode == "Sensitivity Analysis":
245
+ graph_types = ["Custom CSV", "Compare CSV"]
246
+ elif mode == "Sampling: Halton" or mode == "Sampling Random":
247
+ graph_types = ["Sampling CSV", "Matrix Editor"]
248
+ self.graph_selector.configure(values=graph_types)
241
249
 
242
250
 
243
251
  if mode == "Optimization":
@@ -8,16 +8,6 @@ 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
-
21
11
  def create_tab(self, tab):
22
12
 
23
13
  def open_graph_in_browser():
@@ -129,9 +119,6 @@ def create_tab(self, tab):
129
119
  graph_types = []
130
120
  self.graph_selector = customtkinter.CTkOptionMenu(self.graph_sidebar, values=graph_types, variable=self.option_manager.get("selected_graph"), command=self.update_graph)
131
121
  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)
135
122
 
136
123
  # Create SideBar
137
124
  self.vis_sidebar = SideBar.SideBar(self.graph_sidebar, option_manager=self.option_manager, home_page=self, fg_color="transparent")