mg-pso-gui 0.1.72__tar.gz → 0.1.75__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.72 → mg-pso-gui-0.1.75}/PKG-INFO +1 -1
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mg_pso_gui.egg-info/PKG-INFO +1 -1
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/HomePage.py +16 -3
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/GraphGenerator.py +12 -4
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/setup.py +1 -1
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mg_pso_gui.egg-info/entry_points.txt +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mg_pso_gui.egg-info/requires.txt +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mg_pso_gui.egg-info/top_level.txt +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/OptionManager.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/RunTab/RunTab.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/RunTab/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/SetupTab/OptimalParameterView.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/SetupTab/StepView.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/SetupTab/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/VisualizeTab/SideBar.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/images/IGOW 4 Logo.png +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/images/collapse.png +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/images/down.png +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/images/expand.png +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/images/play.png +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/images/refresh.png +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/images/refresh_hd.png +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/images/stop.png +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/images/test.png +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/images/trash.png +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/gui/images/up.png +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/mgpsogui.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/start.yaml +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/PSORunner.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/recosu/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/recosu/pso/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/recosu/pso/csip_access.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/recosu/pso/pso.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/recosu/utils/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/recosu/utils/plot/__init__.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/recosu/utils/plot/cost_steps.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/recosu/utils/trace_writer.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/mgpsogui/util/recosu/utils/utils.py +0 -0
- {mg-pso-gui-0.1.72 → mg-pso-gui-0.1.75}/setup.cfg +0 -0
|
@@ -97,7 +97,8 @@ class App(customtkinter.CTk):
|
|
|
97
97
|
self.image_height = 720
|
|
98
98
|
self.progress_data = None
|
|
99
99
|
self.calibration_data = None
|
|
100
|
-
|
|
100
|
+
self.testing = False
|
|
101
|
+
|
|
101
102
|
# configure window
|
|
102
103
|
self.title("CSIP PSO")
|
|
103
104
|
self.geometry(f"{1920}x{1080}")
|
|
@@ -183,7 +184,7 @@ class App(customtkinter.CTk):
|
|
|
183
184
|
self.run_button.grid(row=0, column=7, padx=(20, 5), pady=header_padding_y)
|
|
184
185
|
|
|
185
186
|
test_image = customtkinter.CTkImage(Image.open(os.path.join("./images", "test.png")), size=(20, 20))
|
|
186
|
-
self.test_button = customtkinter.CTkButton(self.footer_frame, text=None, width=30, image=test_image, command=self.
|
|
187
|
+
self.test_button = customtkinter.CTkButton(self.footer_frame, text=None, width=30, image=test_image, command=self.run_test)
|
|
187
188
|
ctt(self.test_button, delay=0.1, alpha=0.95, message="Start Testing")
|
|
188
189
|
self.test_button.grid(row=0, column=8, padx=(5, 5), pady=header_padding_y)
|
|
189
190
|
|
|
@@ -382,13 +383,25 @@ class App(customtkinter.CTk):
|
|
|
382
383
|
self.after(10, self.make_request)
|
|
383
384
|
self.after(3000, lambda: self.refresh_button.configure(fg_color=self.default_button_color))
|
|
384
385
|
|
|
386
|
+
def run_test(self):
|
|
387
|
+
self.testing = True
|
|
388
|
+
self.run()
|
|
389
|
+
|
|
385
390
|
def run(self):
|
|
386
391
|
metrics = self.option_manager.get_metrics()
|
|
387
392
|
self.running_config = metrics
|
|
388
393
|
|
|
394
|
+
if self.testing:
|
|
395
|
+
steps = metrics['steps']
|
|
396
|
+
for step in steps:
|
|
397
|
+
for param in step['param']:
|
|
398
|
+
if param['optimal_value'] != 0:
|
|
399
|
+
param['default_value'] = param['optimal_value']
|
|
400
|
+
self.testing = False
|
|
401
|
+
|
|
389
402
|
self.progress_data = None
|
|
390
403
|
self.calibration_data = None
|
|
391
|
-
|
|
404
|
+
|
|
392
405
|
#self.progress_bar.configure(mode="indeterminnate")
|
|
393
406
|
#self.progress_bar.start()
|
|
394
407
|
self.footer_progress_bar.configure(mode="indeterminnate")
|
|
@@ -303,12 +303,15 @@ def custom_csv(homepage, option_manager):
|
|
|
303
303
|
|
|
304
304
|
yy = pd.to_numeric(data[val], errors="coerce")
|
|
305
305
|
|
|
306
|
-
yy_unit =
|
|
306
|
+
yy_unit = "-"
|
|
307
|
+
if "Unit" in homepage.csv_data["data_attributes"]:
|
|
308
|
+
yy_unit = homepage.csv_data["data_attributes"]["Unit"][val]
|
|
307
309
|
|
|
308
310
|
yy2 = pd.to_numeric(data[val2], errors="coerce")
|
|
309
311
|
|
|
310
312
|
yy2_unit = "-"
|
|
311
|
-
|
|
313
|
+
if "Unit" in homepage.csv_data["data_attributes"]:
|
|
314
|
+
yy2_unit = homepage.csv_data["data_attributes"]["Unit"][val2]
|
|
312
315
|
|
|
313
316
|
fig.add_trace(go.Scatter(x=xx, y=yy, name=val))
|
|
314
317
|
fig.add_trace(go.Scatter(x=xx, y=yy2, name=val2, yaxis='y2'))
|
|
@@ -381,10 +384,15 @@ def compare_csv(homepage, option_manager):
|
|
|
381
384
|
else:
|
|
382
385
|
xx2 = pd.to_numeric(data2[x], errors="coerce")
|
|
383
386
|
|
|
384
|
-
yy_unit =
|
|
387
|
+
yy_unit = "-"
|
|
388
|
+
if "Unit" in homepage.csv_data["data_attributes"]:
|
|
389
|
+
yy_unit = homepage.csv_data["data_attributes"]["Unit"][val]
|
|
385
390
|
|
|
386
391
|
yy2 = pd.to_numeric(data[val2], errors="coerce")
|
|
387
|
-
|
|
392
|
+
|
|
393
|
+
yy2_unit = "-"
|
|
394
|
+
if "Unit" in homepage.csv_data["data_attributes"]:
|
|
395
|
+
yy2_unit = homepage.csv_data["data_attributes"]["Unit"][val2]
|
|
388
396
|
|
|
389
397
|
fig.add_trace(go.Scatter(x=xx, y=yy, name=val))
|
|
390
398
|
fig.add_trace(go.Scatter(x=xx2, y=yy2, name=val2, yaxis='y2'))
|
|
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
|
|
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
|