mg-pso-gui 0.2.103__py3-none-any.whl → 0.2.105__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.2.103.dist-info → mg_pso_gui-0.2.105.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.2.103.dist-info → mg_pso_gui-0.2.105.dist-info}/RECORD +7 -7
- mgpsogui/gui/HomePage.py +10 -1
- mgpsogui/gui/OptionManager.py +5 -0
- {mg_pso_gui-0.2.103.dist-info → mg_pso_gui-0.2.105.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.2.103.dist-info → mg_pso_gui-0.2.105.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.2.103.dist-info → mg_pso_gui-0.2.105.dist-info}/top_level.txt +0 -0
@@ -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=
|
5
|
-
mgpsogui/gui/OptionManager.py,sha256=
|
4
|
+
mgpsogui/gui/HomePage.py,sha256=24dkYjpahPuSqHbf9Cf_2RoIeuRzKMuEu2Hos20zEu0,24329
|
5
|
+
mgpsogui/gui/OptionManager.py,sha256=XGfIiiYI2DrnnNdFS5DnSqwWWcEOmXNtDa_FS_fgE9Y,22808
|
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/NoticeWindow.py,sha256=HcTtaYKK4b7HognnoAHXiIHZWAXI80QfR8HM2dTLTV8,1866
|
@@ -73,8 +73,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
|
|
73
73
|
mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
|
74
74
|
mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
|
75
75
|
mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
|
76
|
-
mg_pso_gui-0.2.
|
77
|
-
mg_pso_gui-0.2.
|
78
|
-
mg_pso_gui-0.2.
|
79
|
-
mg_pso_gui-0.2.
|
80
|
-
mg_pso_gui-0.2.
|
76
|
+
mg_pso_gui-0.2.105.dist-info/METADATA,sha256=kJV3cHp2aGjLJlg6Dh_WBOpyj7z0TRyb_16o6694FJU,9469
|
77
|
+
mg_pso_gui-0.2.105.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
78
|
+
mg_pso_gui-0.2.105.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
79
|
+
mg_pso_gui-0.2.105.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
80
|
+
mg_pso_gui-0.2.105.dist-info/RECORD,,
|
mgpsogui/gui/HomePage.py
CHANGED
@@ -307,23 +307,32 @@ class App(customtkinter.CTk):
|
|
307
307
|
|
308
308
|
filename = askopenfilename(filetypes=[("JSON", "*.json")], title="Open Project", multiple=False)
|
309
309
|
print(filename)
|
310
|
+
|
311
|
+
print("loading project...")
|
310
312
|
|
311
313
|
try:
|
312
314
|
|
313
315
|
self.option_manager.load_project(filename)
|
316
|
+
|
317
|
+
print("Setting path...")
|
314
318
|
self.option_manager.set_path(filename)
|
315
319
|
|
320
|
+
print("Setting mode...")
|
316
321
|
self.algorithm_optionmenu.set(self.option_manager.get_mode())
|
317
322
|
|
323
|
+
print("Initializing project folder...")
|
318
324
|
folder = self.option_manager.get_project_folder()
|
319
325
|
if not os.path.exists(folder):
|
320
326
|
os.makedirs(folder)
|
321
327
|
|
328
|
+
print("Initizializing results folder...")
|
322
329
|
if not os.path.exists(os.path.join(folder, "results")):
|
323
330
|
os.makedirs(os.path.join(folder, "results"))
|
324
331
|
|
332
|
+
print("Refreshing GUI...")
|
325
333
|
self.refresh_step_view(0)
|
326
334
|
|
335
|
+
print("Done!")
|
327
336
|
self.load_button.configure(text="Loaded!")
|
328
337
|
self.after(3000, lambda: self.load_button.configure(text="Load"))
|
329
338
|
|
@@ -613,7 +622,7 @@ class App(customtkinter.CTk):
|
|
613
622
|
self.footer_progress_bar.stop()
|
614
623
|
self.footer_progress_bar.configure(mode="determinate")
|
615
624
|
self.footer_progress_bar.set(data["percent"]/100)
|
616
|
-
self.footer_progress_label.configure(text="Round: " + str(data["round"]) + " -
|
625
|
+
self.footer_progress_label.configure(text="Round: " + str(data["round"]) + " - Group: " + str(data["step"]))
|
617
626
|
else:
|
618
627
|
if (os.path.exists(os.path.join(folder, 'output.txt'))):
|
619
628
|
data = hp.parse_sampling_output(os.path.join(folder, 'output.txt'))
|
mgpsogui/gui/OptionManager.py
CHANGED
@@ -107,6 +107,8 @@ class OptionManager():
|
|
107
107
|
return self.serialize_data(self._data)
|
108
108
|
|
109
109
|
def load_project(self, filename):
|
110
|
+
|
111
|
+
print("Initizializing lists...")
|
110
112
|
self.init_lists()
|
111
113
|
|
112
114
|
with open(filename, 'r') as file:
|
@@ -115,9 +117,12 @@ class OptionManager():
|
|
115
117
|
for key, value in new_project_data.items():
|
116
118
|
self._project_data[key] = value
|
117
119
|
self._mode_sv.set(results["mode"])
|
120
|
+
|
121
|
+
print("Deserializing data...")
|
118
122
|
new_data = self.deserialize_data(results["data"])
|
119
123
|
|
120
124
|
for service in self._service_modes:
|
125
|
+
print("Processing data for " + service + "...")
|
121
126
|
for key, value in new_data[service].items():
|
122
127
|
self._data[service][key] = value
|
123
128
|
|
File without changes
|
File without changes
|
File without changes
|