mg-pso-gui 0.1.214__py3-none-any.whl → 0.1.215__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.1.214.dist-info → mg_pso_gui-0.1.215.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.1.214.dist-info → mg_pso_gui-0.1.215.dist-info}/RECORD +7 -7
- mgpsogui/gui/OptionManager.py +35 -3
- mgpsogui/gui/SetupTab/FunctionsList.py +12 -1
- {mg_pso_gui-0.1.214.dist-info → mg_pso_gui-0.1.215.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.1.214.dist-info → mg_pso_gui-0.1.215.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.1.214.dist-info → mg_pso_gui-0.1.215.dist-info}/top_level.txt +0 -0
@@ -2,7 +2,7 @@ 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
4
|
mgpsogui/gui/HomePage.py,sha256=L2Vj2B6BzdXvoi6CkLWgxvtrzRMPJlF2sfbB8VpCVyc,22925
|
5
|
-
mgpsogui/gui/OptionManager.py,sha256=
|
5
|
+
mgpsogui/gui/OptionManager.py,sha256=S7BiDHtCIS8QU0RBqCcsKpzTT9gEjiokizLMSGuD3vw,16353
|
6
6
|
mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=q8x_tvVgSoyGINuQbivXRThF3gaSSfg8X_dsLSPv4F0,10492
|
8
8
|
mgpsogui/gui/PlatformTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -11,7 +11,7 @@ mgpsogui/gui/RunTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
11
11
|
mgpsogui/gui/SetupTab/BoundsEditorWindow.py,sha256=_6_xEl46PY9MmNvpmoMNdNDbVav6ODwWSDROboy57Cs,2866
|
12
12
|
mgpsogui/gui/SetupTab/BoundsList.py,sha256=L77UEaUJNiUE-ZsYIl44tWRb1zBfxaEQ-bAG1V5_IH0,12268
|
13
13
|
mgpsogui/gui/SetupTab/CalibrationParametersView.py,sha256=ppVBHG3nphku9-P6Z8az-HTpgk8vHxnj-A5m80BZTgA,2784
|
14
|
-
mgpsogui/gui/SetupTab/FunctionsList.py,sha256=
|
14
|
+
mgpsogui/gui/SetupTab/FunctionsList.py,sha256=bZrgV3Ec4B41-zpOylgndUaNsbpm1RpsHCv_JCjZI-E,5402
|
15
15
|
mgpsogui/gui/SetupTab/ListEditor.py,sha256=vlP0KDPu8J1_6KXuUTlE7OClgfF0Qk6cISsFm_SglUw,3232
|
16
16
|
mgpsogui/gui/SetupTab/ListParametersView.py,sha256=wYcDcaooYkw-y7XW6dJUwhTWxLuUUOK5tGUFVHBf3ck,7352
|
17
17
|
mgpsogui/gui/SetupTab/OptimalParameterView.py,sha256=VKn-4BlVyqspFIOkbWsM0q9pYVsmqnSND0xP2hDKb60,1785
|
@@ -60,8 +60,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
|
|
60
60
|
mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
|
61
61
|
mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
|
62
62
|
mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
|
63
|
-
mg_pso_gui-0.1.
|
64
|
-
mg_pso_gui-0.1.
|
65
|
-
mg_pso_gui-0.1.
|
66
|
-
mg_pso_gui-0.1.
|
67
|
-
mg_pso_gui-0.1.
|
63
|
+
mg_pso_gui-0.1.215.dist-info/METADATA,sha256=DwO9mrXwvfQfYrbbUl4GMapIxFKmY02NM7mtlhHgH-Y,9456
|
64
|
+
mg_pso_gui-0.1.215.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
65
|
+
mg_pso_gui-0.1.215.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
66
|
+
mg_pso_gui-0.1.215.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
67
|
+
mg_pso_gui-0.1.215.dist-info/RECORD,,
|
mgpsogui/gui/OptionManager.py
CHANGED
@@ -121,7 +121,13 @@ class OptionManager():
|
|
121
121
|
obj["param"].append(param_obj)
|
122
122
|
|
123
123
|
for objfunc in step["objfunc"]:
|
124
|
-
objfunc_obj = {"name": sv(),
|
124
|
+
objfunc_obj = {"name": sv(),
|
125
|
+
"of": sv(),
|
126
|
+
"weight": sv(),
|
127
|
+
"custom_function": sv(),
|
128
|
+
"custom_function_goal": sv(),
|
129
|
+
"custom_function_value": sv(),
|
130
|
+
"data": (sv(), sv())}
|
125
131
|
objfunc_obj["name"].set(objfunc["name"])
|
126
132
|
objfunc_obj["of"].set(objfunc["of"])
|
127
133
|
|
@@ -130,6 +136,13 @@ class OptionManager():
|
|
130
136
|
else:
|
131
137
|
objfunc_obj["weight"].set(1)
|
132
138
|
|
139
|
+
if ("custom_function" in objfunc):
|
140
|
+
objfunc_obj["custom_function"].set(objfunc["custom_function"])
|
141
|
+
if ("custom_function_goal" in objfunc):
|
142
|
+
objfunc_obj["custom_function_goal"].set(objfunc["custom_function_goal"])
|
143
|
+
if ("custom_function_value" in objfunc):
|
144
|
+
objfunc_obj["custom_function_value"].set(objfunc["custom_function_value"])
|
145
|
+
|
133
146
|
objfunc_obj["data"][0].set(objfunc["data"][0])
|
134
147
|
objfunc_obj["data"][1].set(objfunc["data"][1])
|
135
148
|
obj["objfunc"].append(objfunc_obj)
|
@@ -137,12 +150,22 @@ class OptionManager():
|
|
137
150
|
self.steps.append(obj)
|
138
151
|
|
139
152
|
def add_function(self, step_index):
|
140
|
-
obj = {"name": sv(),
|
153
|
+
obj = {"name": sv(),
|
154
|
+
"of": sv(),
|
155
|
+
"weight": sv(),
|
156
|
+
"custom_function": sv(),
|
157
|
+
"custom_function_goal": sv(),
|
158
|
+
"custom_function_value": sv(),
|
159
|
+
"data": (sv(), sv())}
|
141
160
|
obj["name"].set("ns")
|
142
161
|
obj["of"].set("ns")
|
143
162
|
obj["weight"].set(1)
|
144
163
|
obj["data"][0].set("")
|
145
164
|
obj["data"][1].set("")
|
165
|
+
obj["custom_function"].set("")
|
166
|
+
obj["custom_function_goal"].set("")
|
167
|
+
obj["custom_function_value"].set("")
|
168
|
+
|
146
169
|
self.steps[step_index]["objfunc"].append(obj)
|
147
170
|
|
148
171
|
def remove_function(self, step_index, index):
|
@@ -151,12 +174,21 @@ class OptionManager():
|
|
151
174
|
def dupe_function(self, step_index, index):
|
152
175
|
my_func = self.steps[step_index]["objfunc"][index]
|
153
176
|
|
154
|
-
new_object = {"name": sv(),
|
177
|
+
new_object = {"name": sv(),
|
178
|
+
"of": sv(),
|
179
|
+
"weight": sv(),
|
180
|
+
"custom_function": sv(),
|
181
|
+
"custom_function_goal": sv(),
|
182
|
+
"custom_function_value": sv(),
|
183
|
+
"data": (sv(), sv())}
|
155
184
|
new_object["name"].set(my_func["name"].get())
|
156
185
|
new_object["of"].set(my_func["of"].get())
|
157
186
|
new_object["weight"].set(my_func["weight"].get())
|
158
187
|
new_object["data"][0].set(my_func["data"][0].get())
|
159
188
|
new_object["data"][1].set(my_func["data"][1].get())
|
189
|
+
new_object["custom_function"].set(my_func["custom_function"].get())
|
190
|
+
new_object["custom_function_goal"].set(my_func["custom_function_goal"].get())
|
191
|
+
new_object["custom_function_value"].set(my_func["custom_function_value"].get())
|
160
192
|
|
161
193
|
self.steps[step_index]["objfunc"].append(new_object)
|
162
194
|
|
@@ -65,11 +65,22 @@ class FunctionsList(CTkFrame):
|
|
65
65
|
"pbias",
|
66
66
|
"pmcc",
|
67
67
|
"rmse",
|
68
|
-
"trmse"
|
68
|
+
"trmse",
|
69
|
+
"custom"]
|
69
70
|
CTkEntry(self.containerFrame, textvariable=func["name"]).grid(row=row, column=0, padx=(5, 5), pady=(5, 5), sticky="ew")
|
70
71
|
CTkOptionMenu(self.containerFrame, values=columns, variable=func["of"]).grid(row=row, column=1, padx=(5, 5), pady=(5, 5), sticky="ew")
|
71
72
|
CTkEntry(self.containerFrame, textvariable=func["weight"]).grid(row=row, column=2, padx=(5, 5), pady=(5, 5), sticky="ew")
|
72
73
|
|
74
|
+
row += 1
|
75
|
+
|
76
|
+
CTkLabel(self.containerFrame, text="Custom Function:").grid(row=row, column=0, columnspan=2, padx=(5, 5), pady=(5, 5), sticky="nsew")
|
77
|
+
CTkLabel(self.containerFrame, text="Target:").grid(row=row, column=2, padx=(5, 5), pady=(5, 5), sticky="nsew")
|
78
|
+
|
79
|
+
row += 1
|
80
|
+
|
81
|
+
CTkEntry(self.containerFrame, textvariable=func["custom_function"]).grid(row=row, column=0, columnspan=2, padx=(5, 5), pady=(5, 5), sticky="ew")
|
82
|
+
CTkOptionMenu(self.containerFrame, values=["Positive Best", "Zero Best"], variable=func["custom_function_goal"]).grid(row=row, column=1, padx=(5, 5), pady=(5, 5), sticky="ew")
|
83
|
+
|
73
84
|
row += 1
|
74
85
|
|
75
86
|
CTkLabel(self.containerFrame, text="Data:").grid(row=row, column=0, padx=(5, 5), pady=(5, 5), sticky="nsew")
|
File without changes
|
File without changes
|
File without changes
|