mg-pso-gui 0.1.142__tar.gz → 0.1.144__tar.gz
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 → mg-pso-gui-0.1.144}/PKG-INFO +1 -1
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/PKG-INFO +1 -1
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/HomePage.py +7 -55
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/helpers.py +2 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/setup.py +1 -1
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/entry_points.txt +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/requires.txt +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/top_level.txt +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/OptionManager.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/RunTab/RunTab.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/RunTab/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/OptimalParameterView.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/StepView.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/VisualizeTab/SideBar.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/IGOW 4 Logo.png +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/collapse.png +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/down.png +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/expand.png +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/play.png +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/refresh.png +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/refresh_hd.png +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/stop.png +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/test.png +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/trash.png +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/up.png +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/mgpsogui.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/start.yaml +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/GraphGenerator.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/PSORunner.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/debug.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/pso/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/pso/csip_access.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/pso/pso.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/halton/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/halton/halton.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/halton/prime.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/random/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/random/random_sampler.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/sample_trace_writer.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/sampler_task.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/sampling.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/utils/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/utils/plot/__init__.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/utils/plot/cost_steps.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/utils/trace_writer.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/utils/utils.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/sampler_test_driver.py +0 -0
- {mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/setup.cfg +0 -0
|
@@ -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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/CalibrationParametersView.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/random/random_sampler.py
RENAMED
|
File without changes
|
{mg-pso-gui-0.1.142 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/sample_trace_writer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|