mg-pso-gui 0.2.104__py3-none-any.whl → 0.2.106__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.104.dist-info → mg_pso_gui-0.2.106.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.2.104.dist-info → mg_pso_gui-0.2.106.dist-info}/RECORD +7 -7
- mgpsogui/gui/HomePage.py +11 -0
- mgpsogui/gui/OptionManager.py +5 -0
- {mg_pso_gui-0.2.104.dist-info → mg_pso_gui-0.2.106.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.2.104.dist-info → mg_pso_gui-0.2.106.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.2.104.dist-info → mg_pso_gui-0.2.106.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=HIkR-4GXiovfi1YXEwQ-p7BEqPe9grsAa2F-QurE8yo,24365
|
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.106.dist-info/METADATA,sha256=U_JalpvDzhAKZyRLjVtmt5uWu2r_9YN_HeC011rD-O4,9469
|
77
|
+
mg_pso_gui-0.2.106.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
78
|
+
mg_pso_gui-0.2.106.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
79
|
+
mg_pso_gui-0.2.106.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
80
|
+
mg_pso_gui-0.2.106.dist-info/RECORD,,
|
mgpsogui/gui/HomePage.py
CHANGED
@@ -305,25 +305,36 @@ class App(customtkinter.CTk):
|
|
305
305
|
|
306
306
|
def load_project(self):
|
307
307
|
|
308
|
+
print("Loading project...")
|
309
|
+
|
308
310
|
filename = askopenfilename(filetypes=[("JSON", "*.json")], title="Open Project", multiple=False)
|
309
311
|
print(filename)
|
312
|
+
|
313
|
+
print("loading project data...")
|
310
314
|
|
311
315
|
try:
|
312
316
|
|
313
317
|
self.option_manager.load_project(filename)
|
318
|
+
|
319
|
+
print("Setting path...")
|
314
320
|
self.option_manager.set_path(filename)
|
315
321
|
|
322
|
+
print("Setting mode...")
|
316
323
|
self.algorithm_optionmenu.set(self.option_manager.get_mode())
|
317
324
|
|
325
|
+
print("Initializing project folder...")
|
318
326
|
folder = self.option_manager.get_project_folder()
|
319
327
|
if not os.path.exists(folder):
|
320
328
|
os.makedirs(folder)
|
321
329
|
|
330
|
+
print("Initizializing results folder...")
|
322
331
|
if not os.path.exists(os.path.join(folder, "results")):
|
323
332
|
os.makedirs(os.path.join(folder, "results"))
|
324
333
|
|
334
|
+
print("Refreshing GUI...")
|
325
335
|
self.refresh_step_view(0)
|
326
336
|
|
337
|
+
print("Done!")
|
327
338
|
self.load_button.configure(text="Loaded!")
|
328
339
|
self.after(3000, lambda: self.load_button.configure(text="Load"))
|
329
340
|
|
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
|