mg-pso-gui 0.2.24__py3-none-any.whl → 0.2.26__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.24
3
+ Version: 0.2.26
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,8 +1,8 @@
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=CBUdasHxGXnI2fL-sE1IPNO4hVi8zR1rTs31z1VmvMQ,21381
5
- mgpsogui/gui/OptionManager.py,sha256=riRYTgylVa07yITD1xea5MjCcCt7Fpa8uhJH2SUTd4w,21676
4
+ mgpsogui/gui/HomePage.py,sha256=T-wyKAM7N2MX-fw13CDdbFzSdDOcrhbXAVTU1w2Yrh8,21428
5
+ mgpsogui/gui/OptionManager.py,sha256=KOGvicsDQK1v6lgpkw0IkH8zPzvWZ7fPe_jOriqLC88,21835
6
6
  mgpsogui/gui/OptionManager_backup.py,sha256=TCWfPnHL2foN5id47jsi267lamRG6yGU6y_M29eOOJk,18530
7
7
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  mgpsogui/gui/General/ParameterView.py,sha256=ylnzYk9qTN31w_6LW4Iq3536CjfWswEqbE95M_SF8P4,5657
@@ -22,7 +22,7 @@ mgpsogui/gui/SetupTab/OptimalParameterView.py,sha256=nliUEWA840cPBQt7wjiZ-L7uBOp
22
22
  mgpsogui/gui/SetupTab/OverrideParameterMetrics.py,sha256=QFSwLRLHwbqyO8gPOzIQ8nhFUktFipKj_aM9QoP0QT0,3372
23
23
  mgpsogui/gui/SetupTab/OverrideParameterWindow.py,sha256=UpZDxTaFxee0BeviUYXeiIlMNYNy00qz3zlMlM5VcXE,1291
24
24
  mgpsogui/gui/SetupTab/SetupTab.py,sha256=uvz604wAgazX9P8naqX9eq-6xwaA8lq-cYTy8lHXkv0,2805
25
- mgpsogui/gui/SetupTab/StepView.py,sha256=7r3Sm2JUjPQN-l8jOVssSNk3Bhwpr0ZAFLt-sJBO_V0,8912
25
+ mgpsogui/gui/SetupTab/StepView.py,sha256=e3QhepeAfDJdhefsJvzyppRuMdVAFKEnbZLtrFIczU4,8936
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
@@ -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.24.dist-info/METADATA,sha256=dA52rqGK-Y6TJ934cAJcbIsIYM_GnG_SJ5Zn4Y_MN1U,9455
73
- mg_pso_gui-0.2.24.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
74
- mg_pso_gui-0.2.24.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
75
- mg_pso_gui-0.2.24.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
76
- mg_pso_gui-0.2.24.dist-info/RECORD,,
72
+ mg_pso_gui-0.2.26.dist-info/METADATA,sha256=CJWr7P7idhUmdGc2i0pA4dHU9cvokNdoGpjhOdeFhMA,9455
73
+ mg_pso_gui-0.2.26.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
74
+ mg_pso_gui-0.2.26.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
75
+ mg_pso_gui-0.2.26.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
76
+ mg_pso_gui-0.2.26.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -57,6 +57,7 @@ results_queue = Queue()
57
57
  stdout_queue = Queue()
58
58
  stderr_queue = Queue()
59
59
 
60
+ %gui tk
60
61
  class App(customtkinter.CTk):
61
62
  def __init__(self):
62
63
  super().__init__()
@@ -214,7 +215,7 @@ class App(customtkinter.CTk):
214
215
  filename = asksaveasfilename(filetypes=[("JSON", "*.json")], initialfile="config", defaultextension="json", title="Save Project")
215
216
 
216
217
  try:
217
-
218
+ self.option_manager.set_path(filename)
218
219
  self.option_manager.save_project(filename)
219
220
 
220
221
  self.save_button.configure(text="Saved!")
@@ -47,6 +47,8 @@ class OptionManager():
47
47
  "figure_style": sv(),
48
48
  "matrix_values": []}
49
49
 
50
+ self._data[service]["sensitivity_analysis_path"].set("No file selected...")
51
+ self._data[service]["sampling_output_mode"].set("Replace")
50
52
  self._data[service]["selected_graph"].set("Best Cost Stacked")
51
53
  self._data[service]["graph_theme"].set("Dark")
52
54
  self._data[service]["selected_csv"].set("No files found...")
@@ -93,8 +93,8 @@ class StepView(CTkScrollableFrame):
93
93
 
94
94
  if len(files) == 0:
95
95
  files = [" No CSV files found! Run sampling first! "]
96
- elif self.option_manager["sensitivity_analysis_path"].get() not in files:
97
- self.option_manager["sensitivity_analysis_path"].set(files[0])
96
+ elif self.option_manager.get("sensitivity_analysis_path").get() not in files:
97
+ self.option_manager.get("sensitivity_analysis_path").set(files[0])
98
98
 
99
99
  header_padding_x = (5, 5)
100
100
  header_padding_y = (10, 10)
@@ -104,7 +104,7 @@ class StepView(CTkScrollableFrame):
104
104
  self.logo_label = CTkLabel(self.file_selector_frame, text="Select File:")
105
105
  self.logo_label.grid(row=0, column=0, padx=(10, 10), pady=header_padding_y)
106
106
 
107
- self.file_selector = CTkOptionMenu(self.file_selector_frame, values=files, width=50, variable=self.option_manager["sensitivity_analysis_path"])
107
+ self.file_selector = CTkOptionMenu(self.file_selector_frame, values=files, width=50, variable=self.option_manager.get("sensitivity_analysis_path"))
108
108
  self.file_selector.grid(row=0, column=1, padx=(10, 10), pady=header_padding_y)
109
109
 
110
110
  row += 1
@@ -119,9 +119,9 @@ class StepView(CTkScrollableFrame):
119
119
  self.logo_label2 = CTkLabel(self.file_selector_frame, text="Output:")
120
120
  self.logo_label2.grid(row=0, column=1, padx=(20, 10), pady=header_padding_y)
121
121
 
122
- self.output_method = CTkOptionMenu(self.file_selector_frame, values=["Replace", "Append"], width=50, variable=self.option_manager["sampling_output_mode"])
123
- if self.option_manager["sampling_output_mode"].get() == "":
124
- self.option_manager["sampling_output_mode"].set("Replace")
122
+ self.output_method = CTkOptionMenu(self.file_selector_frame, values=["Replace", "Append"], width=50, variable=self.option_manager.get("sampling_output_mode"))
123
+ if self.option_manager.get("sampling_output_mode").get() == "":
124
+ self.option_manager.get("sampling_output_mode").set("Replace")
125
125
  self.output_method.grid(row=0, column=2, padx=(10, 10), pady=header_padding_y)
126
126
 
127
127
  row += 1