mg-pso-gui 0.1.150__tar.gz → 0.1.152__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.150 → mg-pso-gui-0.1.152}/PKG-INFO +1 -1
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mg_pso_gui.egg-info/PKG-INFO +1 -1
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/HomePage.py +13 -11
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/SetupTab/OptimalParameterView.py +1 -1
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/SetupTab/StepView.py +1 -3
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/setup.py +1 -1
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mg_pso_gui.egg-info/entry_points.txt +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mg_pso_gui.egg-info/requires.txt +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mg_pso_gui.egg-info/top_level.txt +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/OptionManager.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/RunTab/RunTab.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/RunTab/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/SetupTab/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/VisualizeTab/SideBar.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/images/IGOW 4 Logo.png +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/images/collapse.png +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/images/down.png +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/images/expand.png +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/images/play.png +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/images/refresh.png +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/images/refresh_hd.png +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/images/stop.png +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/images/test.png +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/images/trash.png +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/gui/images/up.png +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/mgpsogui.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/start.yaml +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/GraphGenerator.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/PSORunner.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/debug.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/helpers.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/pso/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/pso/csip_access.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/pso/pso.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/sampling/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/sampling/halton/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/sampling/halton/halton.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/sampling/halton/prime.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/sampling/random/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/sampling/random/random_sampler.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/sampling/sample_trace_writer.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/sampling/sampler_task.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/sampling/sampling.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/utils/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/utils/plot/__init__.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/utils/plot/cost_steps.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/utils/trace_writer.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/utils/utils.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/mgpsogui/util/sampler_test_driver.py +0 -0
- {mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/setup.cfg +0 -0
|
@@ -13,6 +13,7 @@ import requests
|
|
|
13
13
|
import tkinter as tk
|
|
14
14
|
import tkinter.messagebox
|
|
15
15
|
import customtkinter
|
|
16
|
+
from customtkinter import ThemeManager
|
|
16
17
|
import json
|
|
17
18
|
import os
|
|
18
19
|
from PIL import Image, ImageTk
|
|
@@ -100,7 +101,7 @@ class App(customtkinter.CTk):
|
|
|
100
101
|
self.testing = False
|
|
101
102
|
|
|
102
103
|
# configure window
|
|
103
|
-
self.title("
|
|
104
|
+
self.title("COSU Manager")
|
|
104
105
|
self.geometry(f"{1920}x{1080}")
|
|
105
106
|
|
|
106
107
|
# configure grid layout (4x4)
|
|
@@ -230,14 +231,14 @@ class App(customtkinter.CTk):
|
|
|
230
231
|
|
|
231
232
|
if mode == "Optimization: MG-PSO":
|
|
232
233
|
self.test_button.configure(state="normal")
|
|
233
|
-
self.test_button.configure(fg_color="
|
|
234
|
+
self.test_button.configure(fg_color=get_color("CTkButton"))
|
|
234
235
|
self.download_button.configure(state="normal")
|
|
235
|
-
self.download_button.configure(fg_color="
|
|
236
|
+
self.download_button.configure(fg_color=get_color("CTkButton"))
|
|
236
237
|
else:
|
|
237
238
|
self.test_button.configure(state="disabled")
|
|
238
|
-
self.test_button.configure(fg_color="
|
|
239
|
+
self.test_button.configure(fg_color="red")
|
|
239
240
|
self.download_button.configure(state="disabled")
|
|
240
|
-
self.download_button.configure(fg_color="
|
|
241
|
+
self.download_button.configure(fg_color="red")
|
|
241
242
|
|
|
242
243
|
self.steps_frame.clear()
|
|
243
244
|
self.steps_frame.render()
|
|
@@ -334,24 +335,22 @@ class App(customtkinter.CTk):
|
|
|
334
335
|
self.service_description.insert(text=str(response_json["metainfo"]["description"]), index='0.0')
|
|
335
336
|
self.service_details.delete('0.0', tk.END)
|
|
336
337
|
self.service_details.insert(text=json.dumps(response_json, indent=4), index='0.0')
|
|
337
|
-
|
|
338
|
-
self.refresh_step_view(0)
|
|
339
338
|
|
|
340
339
|
self.refresh_button.configure(fg_color="green")
|
|
341
340
|
except Exception as e:
|
|
342
341
|
self.refresh_button.configure(fg_color="red")
|
|
343
|
-
self.after(1000, lambda: self.refresh_button.configure(fg_color=
|
|
342
|
+
self.after(1000, lambda: self.refresh_button.configure(fg_color=get_color("CTkButton")))
|
|
343
|
+
|
|
344
|
+
self.refresh_step_view(0)
|
|
344
345
|
|
|
345
346
|
|
|
346
347
|
def load(self):
|
|
347
348
|
# Make HTTP request to service_url and save the result to bounds.json
|
|
348
349
|
|
|
349
|
-
self.default_button_color = self.refresh_button.cget("fg_color")
|
|
350
|
-
|
|
351
350
|
self.refresh_button.configure(fg_color="gray")
|
|
352
351
|
|
|
353
352
|
self.after(10, self.make_request)
|
|
354
|
-
self.after(3000, lambda: self.refresh_button.configure(fg_color=
|
|
353
|
+
self.after(3000, lambda: self.refresh_button.configure(fg_color=get_color("CTkButton")))
|
|
355
354
|
|
|
356
355
|
def run_test(self):
|
|
357
356
|
self.testing = True
|
|
@@ -603,6 +602,9 @@ class App(customtkinter.CTk):
|
|
|
603
602
|
# Delete the file
|
|
604
603
|
os.remove(os.path.join(folder, 'crash.txt'))
|
|
605
604
|
|
|
605
|
+
def get_color(class_name, property = "fg_color"):
|
|
606
|
+
return ThemeManager.theme[class_name][property]
|
|
607
|
+
|
|
606
608
|
def start():
|
|
607
609
|
app = App()
|
|
608
610
|
app.mainloop()
|
|
@@ -84,8 +84,6 @@ class StepView(CTkScrollableFrame):
|
|
|
84
84
|
down_func = lambda index=index: (self.clear(), self.option_manager.move_step_down(index), self.render())
|
|
85
85
|
remove_func = lambda index=index: (self.clear(), self.option_manager.remove_step(index), self.render())
|
|
86
86
|
|
|
87
|
-
#CTkLabel(self.containerFrame, text="Step:").grid(row=row, column=0, padx=10, pady=5, sticky="nsew")
|
|
88
|
-
|
|
89
87
|
if (self.mode == "Optimization: MG-PSO"):
|
|
90
88
|
button_container = CTkFrame(self.containerFrame, width=200)
|
|
91
89
|
button_container.grid(row=row, column=1, sticky="nse", padx=(10, 10), pady=(10, 10))
|
|
@@ -102,7 +100,7 @@ class StepView(CTkScrollableFrame):
|
|
|
102
100
|
|
|
103
101
|
row += 1
|
|
104
102
|
|
|
105
|
-
if step['open'] or self.mode == "Sampling: Halton":
|
|
103
|
+
if step['open'] or (self.mode == "Sampling: Halton" or self.mode == "Sampling: Random"):
|
|
106
104
|
bounds = BoundsList.BoundsList(
|
|
107
105
|
self.containerFrame, option_manager=self.option_manager, step_index=index)
|
|
108
106
|
bounds.grid(row=row, column=0, padx=(10, 10),
|
|
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.150 → mg-pso-gui-0.1.152}/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.150 → mg-pso-gui-0.1.152}/mgpsogui/util/recosu/sampling/random/random_sampler.py
RENAMED
|
File without changes
|
{mg-pso-gui-0.1.150 → mg-pso-gui-0.1.152}/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
|