mg-pso-gui 0.1.144__py3-none-any.whl → 0.1.146__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.1.144.dist-info → mg_pso_gui-0.1.146.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.1.144.dist-info → mg_pso_gui-0.1.146.dist-info}/RECORD +7 -7
- mgpsogui/gui/HomePage.py +24 -11
- mgpsogui/util/helpers.py +0 -2
- {mg_pso_gui-0.1.144.dist-info → mg_pso_gui-0.1.146.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.1.144.dist-info → mg_pso_gui-0.1.146.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.1.144.dist-info → mg_pso_gui-0.1.146.dist-info}/top_level.txt +0 -0
|
@@ -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=
|
|
4
|
+
mgpsogui/gui/HomePage.py,sha256=EaSk2ztAUcTV7yTBxihYOInCxgEZbP58fdrSeSkzB8I,22403
|
|
5
5
|
mgpsogui/gui/OptionManager.py,sha256=36_MlFd6nLt6xd6HHE2sHtL8oW7VBOZbCvJ8er-wWJ4,12544
|
|
6
6
|
mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=KyIoHlMKD9nfQqHeGJwRDA4RCoe4UykjB2l6xMTKK_M,10486
|
|
@@ -36,7 +36,7 @@ mgpsogui/util/GraphGenerator.py,sha256=KC-qVr4H17rmgfhxZs1P96EEhrBbFgV0vjoTkPvrS
|
|
|
36
36
|
mgpsogui/util/PSORunner.py,sha256=Bk6IXsBKSB33uccTJX7xagYwXHLgUbvpcM5qoi1MXHo,6170
|
|
37
37
|
mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
38
|
mgpsogui/util/debug.py,sha256=Swzny9_1S-CCONWGssj9iDoSpbwu5Vr4f95g_9L8bec,19759
|
|
39
|
-
mgpsogui/util/helpers.py,sha256=
|
|
39
|
+
mgpsogui/util/helpers.py,sha256=nnRgQ9hCGp5RhyesfT_ZI01CthyuK-VX62yx7ukyTdY,2441
|
|
40
40
|
mgpsogui/util/sampler_test_driver.py,sha256=1iJTLVFZ_VCsuIdl3mXQBA1GNAH5jJO3z5h4E_bd5U8,3703
|
|
41
41
|
mgpsogui/util/CTkToolTip/__init__.py,sha256=G1jxV55hGtGgwyC1sR-uUUdasDdh0XZgcI-aILgGYA0,225
|
|
42
42
|
mgpsogui/util/CTkToolTip/ctk_tooltip.py,sha256=SZMovpQIGvdpDRbqCKl9SHs92DrFCO2MOYL2ifolvOE,6329
|
|
@@ -58,8 +58,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
|
|
|
58
58
|
mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
|
|
59
59
|
mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
|
|
60
60
|
mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
|
|
61
|
-
mg_pso_gui-0.1.
|
|
62
|
-
mg_pso_gui-0.1.
|
|
63
|
-
mg_pso_gui-0.1.
|
|
64
|
-
mg_pso_gui-0.1.
|
|
65
|
-
mg_pso_gui-0.1.
|
|
61
|
+
mg_pso_gui-0.1.146.dist-info/METADATA,sha256=JBNSN0GEEnt8V4YorGw9hVaXGmBNc5qRru9M_gOOKCk,9460
|
|
62
|
+
mg_pso_gui-0.1.146.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
63
|
+
mg_pso_gui-0.1.146.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
|
64
|
+
mg_pso_gui-0.1.146.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
|
65
|
+
mg_pso_gui-0.1.146.dist-info/RECORD,,
|
mgpsogui/gui/HomePage.py
CHANGED
|
@@ -176,7 +176,7 @@ class App(customtkinter.CTk):
|
|
|
176
176
|
|
|
177
177
|
play_image = customtkinter.CTkImage(Image.open(os.path.join("./images", "play.png")), size=(20, 20))
|
|
178
178
|
self.run_button = customtkinter.CTkButton(self.footer_frame, text=None, width=30, image=play_image, command=self.run)
|
|
179
|
-
ctt(self.run_button, delay=0.1, alpha=0.95, message="Start
|
|
179
|
+
ctt(self.run_button, delay=0.1, alpha=0.95, message="Start Job")
|
|
180
180
|
self.run_button.grid(row=0, column=7, padx=(20, 5), pady=header_padding_y)
|
|
181
181
|
|
|
182
182
|
test_image = customtkinter.CTkImage(Image.open(os.path.join("./images", "test.png")), size=(20, 20))
|
|
@@ -226,6 +226,19 @@ class App(customtkinter.CTk):
|
|
|
226
226
|
self.after(3000, lambda: self.save_button.configure(text="Save"))
|
|
227
227
|
|
|
228
228
|
def refresh_step_view(self, value):
|
|
229
|
+
mode = self.option_manager.get_arguments()['mode'].get()
|
|
230
|
+
|
|
231
|
+
if mode == "Optimization: MG-PSO":
|
|
232
|
+
self.test_button.configure(state="normal")
|
|
233
|
+
self.test_button.configure(fg_color=None)
|
|
234
|
+
self.download_button.configure(state="normal")
|
|
235
|
+
self.download_button.configure(fg_color=None)
|
|
236
|
+
else:
|
|
237
|
+
self.test_button.configure(state="disabled")
|
|
238
|
+
self.test_button.configure(fg_color="gray")
|
|
239
|
+
self.download_button.configure(state="disabled")
|
|
240
|
+
self.download_button.configure(fg_color="gray")
|
|
241
|
+
|
|
229
242
|
self.steps_frame.clear()
|
|
230
243
|
self.steps_frame.render()
|
|
231
244
|
self.optimal_param_frame.clear()
|
|
@@ -366,11 +379,11 @@ class App(customtkinter.CTk):
|
|
|
366
379
|
self.data_x = [0]
|
|
367
380
|
self.data_y = [0]
|
|
368
381
|
|
|
369
|
-
self.progress_message_middle.configure(text="
|
|
382
|
+
self.progress_message_middle.configure(text="Job starting...")
|
|
370
383
|
self.footer_progress_label.configure(text="Starting...")
|
|
371
384
|
|
|
372
|
-
self.textbox.insert("0.0", "Starting
|
|
373
|
-
self.textbox.insert("0.0", "
|
|
385
|
+
self.textbox.insert("0.0", "Starting job...\n\n")
|
|
386
|
+
self.textbox.insert("0.0", "Job Parameters:\n")
|
|
374
387
|
self.textbox.insert("0.0", json.dumps(metrics, indent=4) + "\n\n")
|
|
375
388
|
try:
|
|
376
389
|
info = self.option_manager.get_project_data()
|
|
@@ -397,9 +410,9 @@ class App(customtkinter.CTk):
|
|
|
397
410
|
self.textbox.insert("0.0", "Stack trace:\n")
|
|
398
411
|
self.textbox.insert("0.0", traceback.format_exc())
|
|
399
412
|
self.textbox.insert("0.0", "\n\n")
|
|
400
|
-
self.textbox.insert("0.0", "
|
|
413
|
+
self.textbox.insert("0.0", "Job failed!")
|
|
401
414
|
self.progress_message_left.configure(text="")
|
|
402
|
-
self.progress_message_middle.configure(text="
|
|
415
|
+
self.progress_message_middle.configure(text="Job failed! See error log below.")
|
|
403
416
|
self.progress_message_right.configure(text="")
|
|
404
417
|
self.footer_progress_label.configure(text="Failed")
|
|
405
418
|
#self.progress_bar.stop()
|
|
@@ -426,7 +439,7 @@ class App(customtkinter.CTk):
|
|
|
426
439
|
if (os.path.exists(os.path.join(folder, 'error.txt'))):
|
|
427
440
|
os.remove(os.path.join(folder, 'error.txt'))
|
|
428
441
|
|
|
429
|
-
self.textbox.insert("0.0", "\
|
|
442
|
+
self.textbox.insert("0.0", "\Job terminated!\n")
|
|
430
443
|
#self.progress_bar.stop()
|
|
431
444
|
self.footer_progress_bar.stop()
|
|
432
445
|
#self.progress_bar.configure(mode="determinate")
|
|
@@ -434,7 +447,7 @@ class App(customtkinter.CTk):
|
|
|
434
447
|
#self.progress_bar.set(0)
|
|
435
448
|
self.footer_progress_bar.set(0)
|
|
436
449
|
self.progress_message_left.configure(text="")
|
|
437
|
-
self.progress_message_middle.configure(text="
|
|
450
|
+
self.progress_message_middle.configure(text="Job stopped!")
|
|
438
451
|
self.footer_progress_label.configure(text="Stopped")
|
|
439
452
|
self.progress_message_right.configure(text="")
|
|
440
453
|
|
|
@@ -560,7 +573,7 @@ class App(customtkinter.CTk):
|
|
|
560
573
|
self.footer_progress_bar.stop()
|
|
561
574
|
self.footer_progress_bar.configure(mode="determinate")
|
|
562
575
|
self.footer_progress_bar.set(data["percent"]/100)
|
|
563
|
-
self.footer_progress_label.configure(text=
|
|
576
|
+
self.footer_progress_label.configure(text=str(round(data["percent"])) + "%")
|
|
564
577
|
|
|
565
578
|
|
|
566
579
|
|
|
@@ -574,9 +587,9 @@ class App(customtkinter.CTk):
|
|
|
574
587
|
#self.progress_bar.start()
|
|
575
588
|
self.footer_progress_bar.start()
|
|
576
589
|
self.progress_message_left.configure(text="")
|
|
577
|
-
self.progress_message_middle.configure(text="
|
|
590
|
+
self.progress_message_middle.configure(text="Job finished!")
|
|
578
591
|
self.progress_message_right.configure(text="")
|
|
579
|
-
self.textbox.insert("0.0", "\
|
|
592
|
+
self.textbox.insert("0.0", "\nJob finished!\n")
|
|
580
593
|
|
|
581
594
|
# IF "./crash.txt" exists write it to the textbox
|
|
582
595
|
if (os.path.exists(os.path.join(folder, 'crash.txt'))):
|
mgpsogui/util/helpers.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|