mg-pso-gui 0.2.32__py3-none-any.whl → 0.2.34__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.32.dist-info → mg_pso_gui-0.2.34.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.2.32.dist-info → mg_pso_gui-0.2.34.dist-info}/RECORD +7 -7
- mgpsogui/gui/HomePage.py +25 -20
- mgpsogui/gui/OptionManager.py +4 -1
- {mg_pso_gui-0.2.32.dist-info → mg_pso_gui-0.2.34.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.2.32.dist-info → mg_pso_gui-0.2.34.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.2.32.dist-info → mg_pso_gui-0.2.34.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=3PVTCfsve6NPscNiSfePNsmVaFx4FTHqV_uTf6SsYqw,21549
|
5
|
+
mgpsogui/gui/OptionManager.py,sha256=HLVib_lHdMijykF78bJ9_PEl-oROuC8lxd1oBS7524U,21898
|
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
|
@@ -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
|
-
mg_pso_gui-0.2.
|
74
|
-
mg_pso_gui-0.2.
|
75
|
-
mg_pso_gui-0.2.
|
76
|
-
mg_pso_gui-0.2.
|
72
|
+
mg_pso_gui-0.2.34.dist-info/METADATA,sha256=pGYSwhKSxk5zV-zZP0Rmtg4OSQKO2-bkoUdEA7dzeVw,9455
|
73
|
+
mg_pso_gui-0.2.34.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
74
|
+
mg_pso_gui-0.2.34.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
75
|
+
mg_pso_gui-0.2.34.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
76
|
+
mg_pso_gui-0.2.34.dist-info/RECORD,,
|
mgpsogui/gui/HomePage.py
CHANGED
@@ -217,6 +217,13 @@ class App(customtkinter.CTk):
|
|
217
217
|
try:
|
218
218
|
self.option_manager.set_path(filename)
|
219
219
|
self.option_manager.save_project(filename)
|
220
|
+
|
221
|
+
folder = self.option_manager.get_project_folder()
|
222
|
+
if not os.path.exists(folder):
|
223
|
+
os.makedirs(folder)
|
224
|
+
|
225
|
+
if not os.path.exists(os.path.join(folder, "results")):
|
226
|
+
os.makedirs(os.path.join(folder, "results"))
|
220
227
|
|
221
228
|
self.save_button.configure(text="Saved!")
|
222
229
|
self.after(3000, lambda: self.save_button.configure(text="Save"))
|
@@ -267,6 +274,14 @@ class App(customtkinter.CTk):
|
|
267
274
|
try:
|
268
275
|
|
269
276
|
self.option_manager.load_project(filename)
|
277
|
+
self.option_manager.set_path(filename)
|
278
|
+
|
279
|
+
folder = self.option_manager.get_project_folder()
|
280
|
+
if not os.path.exists(folder):
|
281
|
+
os.makedirs(folder)
|
282
|
+
|
283
|
+
if not os.path.exists(os.path.join(folder, "results")):
|
284
|
+
os.makedirs(os.path.join(folder, "results"))
|
270
285
|
|
271
286
|
self.refresh_step_view(0)
|
272
287
|
|
@@ -337,15 +352,15 @@ class App(customtkinter.CTk):
|
|
337
352
|
def run(self):
|
338
353
|
|
339
354
|
data = self.option_manager.get_all_data()
|
340
|
-
|
355
|
+
mode = self.option_manager.get_mode()
|
341
356
|
|
342
|
-
self.running_config =
|
357
|
+
self.running_config = data
|
343
358
|
|
344
|
-
if self.testing:
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
359
|
+
#if self.testing:
|
360
|
+
# steps = metrics['steps']
|
361
|
+
# for step in steps:
|
362
|
+
# for param in step['param']:
|
363
|
+
# param['default_value'] = param['optimal_value']
|
349
364
|
self.testing = False
|
350
365
|
|
351
366
|
self.progress_data = None
|
@@ -364,21 +379,11 @@ class App(customtkinter.CTk):
|
|
364
379
|
|
365
380
|
self.textbox.insert("0.0", "Starting job...\n\n")
|
366
381
|
self.textbox.insert("0.0", "Job Parameters:\n")
|
367
|
-
self.textbox.insert("0.0", json.dumps(
|
382
|
+
self.textbox.insert("0.0", json.dumps(data, indent=4) + "\n\n")
|
368
383
|
try:
|
369
|
-
|
370
|
-
folder = os.path.join(info['path'], info['name'])
|
371
|
-
|
372
|
-
if not os.path.exists(folder):
|
373
|
-
os.makedirs(folder)
|
374
|
-
|
375
|
-
if (os.path.exists(os.path.join(folder, 'output.txt'))):
|
376
|
-
os.remove(os.path.join(folder, 'output.txt'))
|
377
|
-
|
378
|
-
if (os.path.exists(os.path.join(folder, 'error.txt'))):
|
379
|
-
os.remove(os.path.join(folder, 'error.txt'))
|
384
|
+
folder = self.option_manager.get_project_folder()
|
380
385
|
|
381
|
-
self.train_process = Process(target=PSORunner.run_process, args=(stdout_queue, stderr_queue, results_queue,
|
386
|
+
self.train_process = Process(target=PSORunner.run_process, args=(stdout_queue, stderr_queue, results_queue, data, folder, mode))
|
382
387
|
self.train_process.daemon = True
|
383
388
|
self.train_process.start()
|
384
389
|
self.after(1000, self.watch_loop)
|
mgpsogui/gui/OptionManager.py
CHANGED
@@ -116,7 +116,10 @@ class OptionManager():
|
|
116
116
|
self._project_data[key] = value
|
117
117
|
self._mode_sv.set(results["mode"])
|
118
118
|
new_data = self.deserialize_data(results["data"])
|
119
|
-
|
119
|
+
|
120
|
+
for service in self._service_modes:
|
121
|
+
for key, value in new_data[service].items():
|
122
|
+
self._data[service][key] = value
|
120
123
|
|
121
124
|
|
122
125
|
def add_arguments(self, arguments):
|
File without changes
|
File without changes
|
File without changes
|