mg-pso-gui 0.2.112__py3-none-any.whl → 0.2.114__py3-none-any.whl
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.2.112.dist-info → mg_pso_gui-0.2.114.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.2.112.dist-info → mg_pso_gui-0.2.114.dist-info}/RECORD +8 -8
- mgpsogui/gui/General/ParameterView.py +1 -1
- mgpsogui/gui/HomePage.py +4 -0
- mgpsogui/gui/SetupTab/BoundsList.py +25 -14
- {mg_pso_gui-0.2.112.dist-info → mg_pso_gui-0.2.114.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.2.112.dist-info → mg_pso_gui-0.2.114.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.2.112.dist-info → mg_pso_gui-0.2.114.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,12 @@
|
|
1
1
|
mgpsogui/__init__.py,sha256=q7AfBjeJABnFtbsZnsObpUwaXKPDVYtz46G6MKXLF74,42
|
2
2
|
mgpsogui/mgpsogui.py,sha256=NIZmyNcbwC8EgSwf1ubdMUSJscrIEgoD4jLYziqHQ-k,148
|
3
3
|
mgpsogui/start.yaml,sha256=ZjCVLb-MLqAxrGRm9kA7_SDpa-45EuKIELNQ2QqCAiU,4713
|
4
|
-
mgpsogui/gui/HomePage.py,sha256=
|
4
|
+
mgpsogui/gui/HomePage.py,sha256=ec-W_dOssQHUmFtPWlpAZTJc8dIh_P2ERwFM331VW1A,24536
|
5
5
|
mgpsogui/gui/OptionManager.py,sha256=t0aXOeBo48qQ-P8OykpP2v_3KJoaJtUPSkYtacjloCc,22844
|
6
6
|
mgpsogui/gui/OptionManager_backup.py,sha256=TCWfPnHL2foN5id47jsi267lamRG6yGU6y_M29eOOJk,18530
|
7
7
|
mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
mgpsogui/gui/General/NoticeWindow.py,sha256=HcTtaYKK4b7HognnoAHXiIHZWAXI80QfR8HM2dTLTV8,1866
|
9
|
-
mgpsogui/gui/General/ParameterView.py,sha256=
|
9
|
+
mgpsogui/gui/General/ParameterView.py,sha256=H7BqT1UiEYpGp8d6ycdKaKtuqY5IkrlHOXiiN_pgcMM,10059
|
10
10
|
mgpsogui/gui/General/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=8J2Aa3Zrh1q9x07zZ0Ap9PgwHjeSKOYyj6wlxx40udw,10985
|
12
12
|
mgpsogui/gui/PlatformTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -14,7 +14,7 @@ mgpsogui/gui/RunTab/OptimalParameterView.py,sha256=nliUEWA840cPBQt7wjiZ-L7uBOp_o
|
|
14
14
|
mgpsogui/gui/RunTab/RunTab.py,sha256=_JWzDx5LT_uISw0Vnv-W2ypIeuKgoWqBnvFnvrLhNQA,5917
|
15
15
|
mgpsogui/gui/RunTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
mgpsogui/gui/SetupTab/BoundsEditorWindow.py,sha256=U64oaiDIOaimjbqKMz5rQNq2o1SrQtrRHDdTYQ9ux1s,2870
|
17
|
-
mgpsogui/gui/SetupTab/BoundsList.py,sha256=
|
17
|
+
mgpsogui/gui/SetupTab/BoundsList.py,sha256=X4qtmRZR38byadUiOjJtjVM95jfsEI10VyWHAqb3GBE,15513
|
18
18
|
mgpsogui/gui/SetupTab/CustomFunctionEditorWindow.py,sha256=yx0dHSNa7fGy99Q6qFcI6j9r8p0DlV3iOBgyPMGd8pM,2884
|
19
19
|
mgpsogui/gui/SetupTab/CustomFunctionMetrics.py,sha256=vOJpElbTgz043m6JYwe9xz_2MBHg985S6KdbJkJERW4,5923
|
20
20
|
mgpsogui/gui/SetupTab/FunctionsList.py,sha256=6oFS8qKF3OCtxNi5aY5Rj_ovM9nv4-vh-oT_CbhVTj4,7043
|
@@ -73,8 +73,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
|
|
73
73
|
mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
|
74
74
|
mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
|
75
75
|
mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
|
76
|
-
mg_pso_gui-0.2.
|
77
|
-
mg_pso_gui-0.2.
|
78
|
-
mg_pso_gui-0.2.
|
79
|
-
mg_pso_gui-0.2.
|
80
|
-
mg_pso_gui-0.2.
|
76
|
+
mg_pso_gui-0.2.114.dist-info/METADATA,sha256=8duS-H3hsDzMehKsU0mMvIe1cwkruSS5xvM6BFNEG4w,9542
|
77
|
+
mg_pso_gui-0.2.114.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
78
|
+
mg_pso_gui-0.2.114.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
79
|
+
mg_pso_gui-0.2.114.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
80
|
+
mg_pso_gui-0.2.114.dist-info/RECORD,,
|
@@ -57,7 +57,7 @@ class ParameterView(CTkScrollableFrame):
|
|
57
57
|
CTkEntry(self.containerFrame, textvariable=self.key_values[index]["name"]).grid(row=row, column=0, columnspan=3, padx=(5, 5), pady=(5, 5), sticky="ew")
|
58
58
|
|
59
59
|
if self.edit_mode and not required:
|
60
|
-
type_menu = CTkOptionMenu(self.containerFrame, variable=self.key_values[index]["type"], values=["integer", "float", "date", "
|
60
|
+
type_menu = CTkOptionMenu(self.containerFrame, variable=self.key_values[index]["type"], values=["integer", "float", "date", "boolean", "string"], width=20)
|
61
61
|
type_menu.grid(row=row, column=3, columnspan=1, padx=(0, 0), pady=(5, 5), sticky="ew")
|
62
62
|
|
63
63
|
dest_menu = CTkOptionMenu(self.containerFrame, variable=self.key_values[index]["destination"], values=["args", "kwargs", "conf", "options", "oh_strategy", "metainfo"], width=20)
|
mgpsogui/gui/HomePage.py
CHANGED
@@ -401,6 +401,10 @@ class App(customtkinter.CTk):
|
|
401
401
|
|
402
402
|
def run(self):
|
403
403
|
|
404
|
+
if self.train_process is not None and self.train_process.is_alive():
|
405
|
+
NW(title="Error", message="A process is already running!")
|
406
|
+
return 0
|
407
|
+
|
404
408
|
data = self.option_manager.get_all_data()
|
405
409
|
mode = self.option_manager.get_mode()
|
406
410
|
data = data[mode]
|
@@ -54,6 +54,7 @@ class BoundsList(CTkFrame):
|
|
54
54
|
self.tooltip_list = []
|
55
55
|
|
56
56
|
mode = self.option_manager.get_mode()
|
57
|
+
bounds = self.option_manager.get_steps()[self.step_index]["parameter_objects"]
|
57
58
|
|
58
59
|
# Load bound parameters depending on the mode
|
59
60
|
self.optParams = []
|
@@ -90,16 +91,26 @@ class BoundsList(CTkFrame):
|
|
90
91
|
CTkLabel(self.containerFrame, text="Type:").grid(row=row, column=0, padx=(5, 5), pady=(5, 5), sticky="nsew")
|
91
92
|
CTkLabel(self.containerFrame, text="Name:").grid(row=row, column=1, padx=(5, 5), pady=(5, 5), sticky="nsew")
|
92
93
|
|
94
|
+
|
95
|
+
show_strategy = False
|
96
|
+
|
93
97
|
if mode != "Sensitivity Analysis":
|
94
98
|
CTkLabel(self.containerFrame, text="Bounds:").grid(row=row, column=2, columnspan=2, padx=(5, 5), pady=(5, 5), sticky="nsew")
|
95
99
|
|
96
100
|
if mode == "Optimization":
|
101
|
+
|
102
|
+
for bound in bounds:
|
103
|
+
bound_type = bound["type"].get()
|
104
|
+
if bound_type == "list":
|
105
|
+
show_strategy = True
|
106
|
+
break
|
107
|
+
|
97
108
|
CTkLabel(self.containerFrame, text="Default:").grid(row=row, column=4, padx=(5, 5), pady=(5, 5), sticky="nsew")
|
98
|
-
|
109
|
+
|
110
|
+
if show_strategy:
|
111
|
+
CTkLabel(self.containerFrame, text="Strategy:").grid(row=row, column=5, padx=(5, 5), pady=(5, 5), sticky="nsew")
|
99
112
|
row += 1
|
100
113
|
|
101
|
-
bounds = self.option_manager.get_steps()[self.step_index]["parameter_objects"]
|
102
|
-
|
103
114
|
for bound in bounds:
|
104
115
|
tt1 = None
|
105
116
|
tt2 = None
|
@@ -153,15 +164,6 @@ class BoundsList(CTkFrame):
|
|
153
164
|
self.validate_number(bounds_max.get(), cc, bounds_max)
|
154
165
|
tt2 = ctt(bounds_max, delay=0.1, alpha=0.95, message="...")
|
155
166
|
|
156
|
-
if (bound_type == "list" and mode == "Optimization"):
|
157
|
-
def button_click_event(bound_index):
|
158
|
-
BEW(title="Edit List Bound", step_index=self.step_index, bound_index=bound_index, option_manager=self.option_manager)
|
159
|
-
|
160
|
-
open_window = lambda event=None, bound_index=index: (button_click_event(bound_index))
|
161
|
-
expand_image = CTkImage(Image.open(os.path.join("./images", "expand.png")), size=(20, 20))
|
162
|
-
button = CTkButton(self.containerFrame, width=30, text=None, image=expand_image, command=open_window)
|
163
|
-
button.grid(row=row, column=6, padx=(5, 5), pady=(5, 5), sticky="new")
|
164
|
-
|
165
167
|
if mode == "Sampling: Random" or mode == "Sampling: Halton":
|
166
168
|
|
167
169
|
tt1 = ctt(bounds_min, delay=0.1, alpha=0.95, message="...")
|
@@ -181,8 +183,17 @@ class BoundsList(CTkFrame):
|
|
181
183
|
default_value.grid(row=row, column=4, padx=(5, 5), pady=(5, 5), sticky="new")
|
182
184
|
default_value.configure(textvariable=bound["default_value"])
|
183
185
|
|
184
|
-
|
185
|
-
|
186
|
+
if (bound_type == "list" and mode == "Optimization"):
|
187
|
+
calibration_strat = CTkOptionMenu(self.containerFrame, dynamic_resizing=False, values=['none', 'mean', 'single'], variable=bound["calibration_strategy"])
|
188
|
+
calibration_strat.grid(row=row, column=5, padx=(5, 5), pady=(5, 5), sticky="new")
|
189
|
+
|
190
|
+
def button_click_event(bound_index):
|
191
|
+
BEW(title="Edit List Bound", step_index=self.step_index, bound_index=bound_index, option_manager=self.option_manager)
|
192
|
+
|
193
|
+
open_window = lambda event=None, bound_index=index: (button_click_event(bound_index))
|
194
|
+
expand_image = CTkImage(Image.open(os.path.join("./images", "expand.png")), size=(20, 20))
|
195
|
+
button = CTkButton(self.containerFrame, width=30, text=None, image=expand_image, command=open_window)
|
196
|
+
button.grid(row=row, column=6, padx=(5, 5), pady=(5, 5), sticky="new")
|
186
197
|
|
187
198
|
tt1 = ctt(bounds_min, delay=0.1, alpha=0.95, message="...")
|
188
199
|
tt2 = ctt(bounds_max, delay=0.1, alpha=0.95, message="...")
|
File without changes
|
File without changes
|
File without changes
|