mg-pso-gui 0.1.152__tar.gz → 0.1.154__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.152 → mg-pso-gui-0.1.154}/PKG-INFO +1 -1
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mg_pso_gui.egg-info/PKG-INFO +1 -1
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/HomePage.py +2 -2
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/helpers.py +9 -8
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/setup.py +1 -1
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mg_pso_gui.egg-info/entry_points.txt +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mg_pso_gui.egg-info/requires.txt +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mg_pso_gui.egg-info/top_level.txt +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/OptionManager.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/RunTab/RunTab.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/RunTab/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/SetupTab/OptimalParameterView.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/SetupTab/StepView.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/SetupTab/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/VisualizeTab/SideBar.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/images/IGOW 4 Logo.png +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/images/collapse.png +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/images/down.png +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/images/expand.png +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/images/play.png +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/images/refresh.png +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/images/refresh_hd.png +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/images/stop.png +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/images/test.png +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/images/trash.png +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/gui/images/up.png +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/mgpsogui.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/start.yaml +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/GraphGenerator.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/PSORunner.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/debug.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/pso/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/pso/csip_access.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/pso/pso.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/sampling/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/sampling/halton/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/sampling/halton/halton.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/sampling/halton/prime.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/sampling/random/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/sampling/random/random_sampler.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/sampling/sample_trace_writer.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/sampling/sampler_task.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/sampling/sampling.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/utils/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/utils/plot/__init__.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/utils/plot/cost_steps.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/utils/trace_writer.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/utils/utils.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/mgpsogui/util/sampler_test_driver.py +0 -0
- {mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/setup.cfg +0 -0
|
@@ -236,9 +236,9 @@ class App(customtkinter.CTk):
|
|
|
236
236
|
self.download_button.configure(fg_color=get_color("CTkButton"))
|
|
237
237
|
else:
|
|
238
238
|
self.test_button.configure(state="disabled")
|
|
239
|
-
self.test_button.configure(fg_color="
|
|
239
|
+
self.test_button.configure(fg_color="gray")
|
|
240
240
|
self.download_button.configure(state="disabled")
|
|
241
|
-
self.download_button.configure(fg_color="
|
|
241
|
+
self.download_button.configure(fg_color="gray")
|
|
242
242
|
|
|
243
243
|
self.steps_frame.clear()
|
|
244
244
|
self.steps_frame.render()
|
|
@@ -47,24 +47,23 @@ def parse_pso_error(file_path, num_steps):
|
|
|
47
47
|
lines = [line for line in lines if 'best_cost' in line]
|
|
48
48
|
lines = [line.replace("pyswarms.single.global_best: ", "") for line in lines]
|
|
49
49
|
|
|
50
|
+
# Add a fake line to make sure the last round is added
|
|
51
|
+
lines.append(" 0% /best_cost=0")
|
|
52
|
+
|
|
50
53
|
round = 1
|
|
51
54
|
step = 1
|
|
52
55
|
|
|
53
56
|
round_steps = {}
|
|
54
57
|
percents = []
|
|
55
58
|
best_costs = []
|
|
56
|
-
in100s = False
|
|
57
59
|
percent = 0
|
|
60
|
+
last_percent = 0
|
|
58
61
|
for line in lines:
|
|
59
62
|
best_cost = float(line.split('best_cost=')[1].strip())
|
|
60
63
|
percent = float(line.split('%')[0].strip())
|
|
61
64
|
|
|
62
|
-
best_costs.append(best_cost)
|
|
63
|
-
percents.append(percent)
|
|
64
|
-
|
|
65
65
|
# Percent is less than last percent or we are at the end of the file
|
|
66
|
-
if (percent
|
|
67
|
-
in100s = True
|
|
66
|
+
if (percent < last_percent):
|
|
68
67
|
|
|
69
68
|
round_steps[f"Round: {round} - Step: {step}"] = {
|
|
70
69
|
"best_cost": best_costs.copy(),
|
|
@@ -79,7 +78,9 @@ def parse_pso_error(file_path, num_steps):
|
|
|
79
78
|
step = 1
|
|
80
79
|
round += 1
|
|
81
80
|
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
best_costs.append(best_cost)
|
|
82
|
+
percents.append(percent)
|
|
83
|
+
|
|
84
|
+
last_percent = percent
|
|
84
85
|
|
|
85
86
|
return {"round": round, "step": step, "percent": percent, "data": round_steps}
|
|
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.152 → mg-pso-gui-0.1.154}/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.152 → mg-pso-gui-0.1.154}/mgpsogui/util/recosu/sampling/random/random_sampler.py
RENAMED
|
File without changes
|
{mg-pso-gui-0.1.152 → mg-pso-gui-0.1.154}/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
|