mg-pso-gui 0.1.142__py3-none-any.whl → 0.1.144__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.142.dist-info → mg_pso_gui-0.1.144.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.1.142.dist-info → mg_pso_gui-0.1.144.dist-info}/RECORD +7 -7
- mgpsogui/gui/HomePage.py +7 -55
- mgpsogui/util/helpers.py +2 -0
- {mg_pso_gui-0.1.142.dist-info → mg_pso_gui-0.1.144.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.1.142.dist-info → mg_pso_gui-0.1.144.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.1.142.dist-info → mg_pso_gui-0.1.144.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=do7gC3Cy_owi38D6jgGEM2NDHZ7SjVE-P7LdFdHG-M4,21991
|
|
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=iwWRyBoiQeWz8rF1RDAYvHXE9XYc3km9KQq-H_SDAlU,2459
|
|
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.144.dist-info/METADATA,sha256=1zC4VJfbJeGGVFBO3jC_40E8-S9C1HtT8bClMCYVuiQ,9460
|
|
62
|
+
mg_pso_gui-0.1.144.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
63
|
+
mg_pso_gui-0.1.144.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
|
64
|
+
mg_pso_gui-0.1.144.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
|
65
|
+
mg_pso_gui-0.1.144.dist-info/RECORD,,
|
mgpsogui/gui/HomePage.py
CHANGED
|
@@ -544,71 +544,23 @@ class App(customtkinter.CTk):
|
|
|
544
544
|
traceback.print_exc()
|
|
545
545
|
print(e)
|
|
546
546
|
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
if
|
|
547
|
+
# Parse data into interface
|
|
548
|
+
mode = self.option_manager.get_arguments()['mode'].get()
|
|
549
|
+
if mode == "Optimization: MG-PSO":
|
|
550
|
+
if (os.path.exists(os.path.join(folder, 'error.txt'))):
|
|
551
551
|
data = hp.parse_pso_error(os.path.join(folder, 'error.txt'), len(self.option_manager.get_steps()))
|
|
552
|
+
self.progress_data = data["data"]
|
|
552
553
|
self.footer_progress_bar.stop()
|
|
553
554
|
self.footer_progress_bar.configure(mode="determinate")
|
|
554
555
|
self.footer_progress_bar.set(data["percent"]/100)
|
|
555
556
|
self.footer_progress_label.configure(text="Round: " + str(data["round"]) + " - Step: " + str(data["step"]))
|
|
556
|
-
|
|
557
|
+
else:
|
|
558
|
+
if (os.path.exists(os.path.join(folder, 'output.txt'))):
|
|
557
559
|
data = hp.parse_sampling_output(os.path.join(folder, 'output.txt'))
|
|
558
|
-
self.progress_data = data["data"]
|
|
559
560
|
self.footer_progress_bar.stop()
|
|
560
561
|
self.footer_progress_bar.configure(mode="determinate")
|
|
561
562
|
self.footer_progress_bar.set(data["percent"]/100)
|
|
562
|
-
#self.progress_message_left.configure(text="Percent Complete: " + str(round(data["percent"])) + "%")
|
|
563
|
-
#self.progress_message_middle.configure(text=str(completed_rounds) + "/" + str(total_rounds))
|
|
564
563
|
self.footer_progress_label.configure(text="Percent: " + str(data["percent"]))
|
|
565
|
-
#self.progress_message_right.configure(text="Best Cost: " + str(best_cost))
|
|
566
|
-
|
|
567
|
-
"""with open(os.path.join(folder, 'error.txt'), 'r') as f:
|
|
568
|
-
lines = f.readlines()
|
|
569
|
-
lines_string = "".join(lines)
|
|
570
|
-
self.data_cache = lines_string
|
|
571
|
-
|
|
572
|
-
pattern = r'(\d+)%\|.*\|(\d+)/(\d+)(?:,\sbest_cost=(\d+\.\d+))?' # The magic of AI
|
|
573
|
-
matches = re.findall(pattern, self.data_cache)
|
|
574
|
-
filtered_matches = [match for match in matches if match[3] != '']
|
|
575
|
-
matches = filtered_matches
|
|
576
|
-
|
|
577
|
-
if len(matches) > 0:
|
|
578
|
-
df = pd.DataFrame(matches, columns=['percent', 'completed_rounds', 'total_rounds', 'best_cost'], dtype=float)
|
|
579
|
-
df = df[df['best_cost'] != '']
|
|
580
|
-
df = df.dropna()
|
|
581
|
-
df = df.drop_duplicates()
|
|
582
|
-
df['round_step'] = (df['completed_rounds'].diff() < 0).cumsum()
|
|
583
|
-
df = df.drop_duplicates(subset=['completed_rounds', 'round_step'])
|
|
584
|
-
self.progress_data = df
|
|
585
|
-
|
|
586
|
-
match = matches[-1]
|
|
587
|
-
percent = int(match[0])
|
|
588
|
-
completed_rounds = int(match[1])
|
|
589
|
-
total_rounds = int(match[2])
|
|
590
|
-
best_cost = float(match[3]) if match[3] else None
|
|
591
|
-
|
|
592
|
-
if (percent > 0):
|
|
593
|
-
#self.progress_bar.stop()
|
|
594
|
-
self.footer_progress_bar.stop()
|
|
595
|
-
#self.progress_bar.configure(mode="determinate")
|
|
596
|
-
self.footer_progress_bar.configure(mode="determinate")
|
|
597
|
-
#self.progress_bar.set(percent/100)
|
|
598
|
-
self.footer_progress_bar.set(percent/100)
|
|
599
|
-
self.progress_message_left.configure(text="Percent Complete: " + str(percent) + "%")
|
|
600
|
-
self.progress_message_middle.configure(text=str(completed_rounds) + "/" + str(total_rounds))
|
|
601
|
-
self.footer_progress_label.configure(text=str(completed_rounds) + "/" + str(total_rounds))
|
|
602
|
-
self.progress_message_right.configure(text="Best Cost: " + str(best_cost))
|
|
603
|
-
else:
|
|
604
|
-
#self.progress_bar.configure(mode="indeterminate")
|
|
605
|
-
self.footer_progress_bar.configure(mode="indeterminate")
|
|
606
|
-
#self.progress_bar.start()
|
|
607
|
-
self.footer_progress_bar.start()
|
|
608
|
-
self.progress_message_left.configure(text="")
|
|
609
|
-
self.progress_message_middle.configure(text="Starting new round...")
|
|
610
|
-
self.footer_progress_label.configure(text="Next round...")
|
|
611
|
-
self.progress_message_right.configure(text="")"""
|
|
612
564
|
|
|
613
565
|
|
|
614
566
|
|
mgpsogui/util/helpers.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|