mg-pso-gui 0.1.153__tar.gz → 0.1.155__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.153 → mg-pso-gui-0.1.155}/PKG-INFO +1 -1
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mg_pso_gui.egg-info/PKG-INFO +1 -1
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/HomePage.py +5 -5
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/GraphGenerator.py +4 -3
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/helpers.py +9 -8
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/setup.py +1 -1
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mg_pso_gui.egg-info/entry_points.txt +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mg_pso_gui.egg-info/requires.txt +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mg_pso_gui.egg-info/top_level.txt +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/OptionManager.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/RunTab/RunTab.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/RunTab/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/SetupTab/OptimalParameterView.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/SetupTab/StepView.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/SetupTab/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/VisualizeTab/SideBar.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/images/IGOW 4 Logo.png +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/images/collapse.png +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/images/down.png +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/images/expand.png +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/images/play.png +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/images/refresh.png +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/images/refresh_hd.png +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/images/stop.png +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/images/test.png +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/images/trash.png +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/gui/images/up.png +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/mgpsogui.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/start.yaml +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/PSORunner.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/debug.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/pso/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/pso/csip_access.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/pso/pso.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/sampling/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/sampling/halton/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/sampling/halton/halton.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/sampling/halton/prime.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/sampling/random/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/sampling/random/random_sampler.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/sampling/sample_trace_writer.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/sampling/sampler_task.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/sampling/sampling.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/utils/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/utils/plot/__init__.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/utils/plot/cost_steps.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/utils/trace_writer.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/utils/utils.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/sampler_test_driver.py +0 -0
- {mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/setup.cfg +0 -0
|
@@ -432,13 +432,13 @@ class App(customtkinter.CTk):
|
|
|
432
432
|
os.makedirs(folder)
|
|
433
433
|
|
|
434
434
|
# Stop the process
|
|
435
|
-
if (os.path.exists(os.path.join(folder, 'output.txt'))):
|
|
436
|
-
|
|
435
|
+
#if (os.path.exists(os.path.join(folder, 'output.txt'))):
|
|
436
|
+
# os.remove(os.path.join(folder, 'output.txt'))
|
|
437
437
|
|
|
438
|
-
if (os.path.exists(os.path.join(folder, 'error.txt'))):
|
|
439
|
-
|
|
438
|
+
#if (os.path.exists(os.path.join(folder, 'error.txt'))):
|
|
439
|
+
# os.remove(os.path.join(folder, 'error.txt'))
|
|
440
440
|
|
|
441
|
-
self.textbox.insert("0.0", "
|
|
441
|
+
self.textbox.insert("0.0", "Job terminated!\n")
|
|
442
442
|
#self.progress_bar.stop()
|
|
443
443
|
self.footer_progress_bar.stop()
|
|
444
444
|
#self.progress_bar.configure(mode="determinate")
|
|
@@ -59,7 +59,7 @@ def best_cost_stacked(config, data, option_manager):
|
|
|
59
59
|
|
|
60
60
|
fig.update_layout(
|
|
61
61
|
title="",
|
|
62
|
-
xaxis_title="
|
|
62
|
+
xaxis_title="Progress (% through Group)",
|
|
63
63
|
yaxis_title="Best Cost",
|
|
64
64
|
font=dict(color='white'),
|
|
65
65
|
paper_bgcolor='rgba(42, 42, 42, 0)',
|
|
@@ -163,7 +163,8 @@ def best_cost_by_round(config, data, option_manager):
|
|
|
163
163
|
|
|
164
164
|
#fig.add_trace(go.Scatter(x=df['completed_rounds'] + (df['total_rounds'] * round_index), y=df['best_cost'], name='Group ' + str(step_index + 1)))
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
|
|
167
|
+
xx = np.max(np.array(data[round_step]["percent"]) + (100 * round_index))
|
|
167
168
|
fig.add_shape(
|
|
168
169
|
type='line',
|
|
169
170
|
x0=xx,
|
|
@@ -188,7 +189,7 @@ def best_cost_by_round(config, data, option_manager):
|
|
|
188
189
|
|
|
189
190
|
fig.update_layout(
|
|
190
191
|
title="",
|
|
191
|
-
xaxis_title="
|
|
192
|
+
xaxis_title="Progress (%)",
|
|
192
193
|
yaxis_title="Best Cost",
|
|
193
194
|
font=dict(color='white'),
|
|
194
195
|
paper_bgcolor='rgba(42, 42, 42, 0)',
|
|
@@ -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.153 → mg-pso-gui-0.1.155}/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
|
{mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/mgpsogui/util/recosu/sampling/random/random_sampler.py
RENAMED
|
File without changes
|
{mg-pso-gui-0.1.153 → mg-pso-gui-0.1.155}/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
|