mg-pso-gui 0.1.143__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.143 → mg-pso-gui-0.1.144}/PKG-INFO +1 -1
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/PKG-INFO +1 -1
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/HomePage.py +7 -57
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/setup.py +1 -1
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/entry_points.txt +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/requires.txt +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mg_pso_gui.egg-info/top_level.txt +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/OptionManager.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/RunTab/RunTab.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/RunTab/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/OptimalParameterView.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/StepView.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/SetupTab/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/VisualizeTab/SideBar.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/IGOW 4 Logo.png +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/collapse.png +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/down.png +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/expand.png +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/play.png +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/refresh.png +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/refresh_hd.png +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/stop.png +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/test.png +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/trash.png +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/gui/images/up.png +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/mgpsogui.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/start.yaml +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/GraphGenerator.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/PSORunner.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/debug.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/helpers.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/pso/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/pso/csip_access.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/pso/pso.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/halton/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/halton/halton.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/halton/prime.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/random/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/random/random_sampler.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/sample_trace_writer.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/sampler_task.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/sampling.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/utils/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/utils/plot/__init__.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/utils/plot/cost_steps.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/utils/trace_writer.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/utils/utils.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/sampler_test_driver.py +0 -0
- {mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/setup.cfg +0 -0
|
@@ -544,73 +544,23 @@ class App(customtkinter.CTk):
|
|
|
544
544
|
traceback.print_exc()
|
|
545
545
|
print(e)
|
|
546
546
|
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
if mode == "Optimization: MG-PSO":
|
|
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'))):
|
|
553
551
|
data = hp.parse_pso_error(os.path.join(folder, 'error.txt'), len(self.option_manager.get_steps()))
|
|
552
|
+
self.progress_data = data["data"]
|
|
554
553
|
self.footer_progress_bar.stop()
|
|
555
554
|
self.footer_progress_bar.configure(mode="determinate")
|
|
556
555
|
self.footer_progress_bar.set(data["percent"]/100)
|
|
557
556
|
self.footer_progress_label.configure(text="Round: " + str(data["round"]) + " - Step: " + str(data["step"]))
|
|
558
|
-
|
|
557
|
+
else:
|
|
558
|
+
if (os.path.exists(os.path.join(folder, 'output.txt'))):
|
|
559
559
|
data = hp.parse_sampling_output(os.path.join(folder, 'output.txt'))
|
|
560
|
-
self.progress_data = data["data"]
|
|
561
560
|
self.footer_progress_bar.stop()
|
|
562
561
|
self.footer_progress_bar.configure(mode="determinate")
|
|
563
562
|
self.footer_progress_bar.set(data["percent"]/100)
|
|
564
|
-
#self.progress_message_left.configure(text="Percent Complete: " + str(round(data["percent"])) + "%")
|
|
565
|
-
#self.progress_message_middle.configure(text=str(completed_rounds) + "/" + str(total_rounds))
|
|
566
563
|
self.footer_progress_label.configure(text="Percent: " + str(data["percent"]))
|
|
567
|
-
#self.progress_message_right.configure(text="Best Cost: " + str(best_cost))
|
|
568
|
-
|
|
569
|
-
"""with open(os.path.join(folder, 'error.txt'), 'r') as f:
|
|
570
|
-
lines = f.readlines()
|
|
571
|
-
lines_string = "".join(lines)
|
|
572
|
-
self.data_cache = lines_string
|
|
573
|
-
|
|
574
|
-
pattern = r'(\d+)%\|.*\|(\d+)/(\d+)(?:,\sbest_cost=(\d+\.\d+))?' # The magic of AI
|
|
575
|
-
matches = re.findall(pattern, self.data_cache)
|
|
576
|
-
filtered_matches = [match for match in matches if match[3] != '']
|
|
577
|
-
matches = filtered_matches
|
|
578
|
-
|
|
579
|
-
if len(matches) > 0:
|
|
580
|
-
df = pd.DataFrame(matches, columns=['percent', 'completed_rounds', 'total_rounds', 'best_cost'], dtype=float)
|
|
581
|
-
df = df[df['best_cost'] != '']
|
|
582
|
-
df = df.dropna()
|
|
583
|
-
df = df.drop_duplicates()
|
|
584
|
-
df['round_step'] = (df['completed_rounds'].diff() < 0).cumsum()
|
|
585
|
-
df = df.drop_duplicates(subset=['completed_rounds', 'round_step'])
|
|
586
|
-
self.progress_data = df
|
|
587
|
-
|
|
588
|
-
match = matches[-1]
|
|
589
|
-
percent = int(match[0])
|
|
590
|
-
completed_rounds = int(match[1])
|
|
591
|
-
total_rounds = int(match[2])
|
|
592
|
-
best_cost = float(match[3]) if match[3] else None
|
|
593
|
-
|
|
594
|
-
if (percent > 0):
|
|
595
|
-
#self.progress_bar.stop()
|
|
596
|
-
self.footer_progress_bar.stop()
|
|
597
|
-
#self.progress_bar.configure(mode="determinate")
|
|
598
|
-
self.footer_progress_bar.configure(mode="determinate")
|
|
599
|
-
#self.progress_bar.set(percent/100)
|
|
600
|
-
self.footer_progress_bar.set(percent/100)
|
|
601
|
-
self.progress_message_left.configure(text="Percent Complete: " + str(percent) + "%")
|
|
602
|
-
self.progress_message_middle.configure(text=str(completed_rounds) + "/" + str(total_rounds))
|
|
603
|
-
self.footer_progress_label.configure(text=str(completed_rounds) + "/" + str(total_rounds))
|
|
604
|
-
self.progress_message_right.configure(text="Best Cost: " + str(best_cost))
|
|
605
|
-
else:
|
|
606
|
-
#self.progress_bar.configure(mode="indeterminate")
|
|
607
|
-
self.footer_progress_bar.configure(mode="indeterminate")
|
|
608
|
-
#self.progress_bar.start()
|
|
609
|
-
self.footer_progress_bar.start()
|
|
610
|
-
self.progress_message_left.configure(text="")
|
|
611
|
-
self.progress_message_middle.configure(text="Starting new round...")
|
|
612
|
-
self.footer_progress_label.configure(text="Next round...")
|
|
613
|
-
self.progress_message_right.configure(text="")"""
|
|
614
564
|
|
|
615
565
|
|
|
616
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.143 → 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
|
|
File without changes
|
{mg-pso-gui-0.1.143 → mg-pso-gui-0.1.144}/mgpsogui/util/recosu/sampling/random/random_sampler.py
RENAMED
|
File without changes
|
{mg-pso-gui-0.1.143 → 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
|