mg-pso-gui 0.1.227__py3-none-any.whl → 0.1.229__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.227.dist-info → mg_pso_gui-0.1.229.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.1.227.dist-info → mg_pso_gui-0.1.229.dist-info}/RECORD +6 -6
- mgpsogui/gui/SetupTab/CustomFunctionMetrics.py +14 -1
- {mg_pso_gui-0.1.227.dist-info → mg_pso_gui-0.1.229.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.1.227.dist-info → mg_pso_gui-0.1.229.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.1.227.dist-info → mg_pso_gui-0.1.229.dist-info}/top_level.txt +0 -0
@@ -12,7 +12,7 @@ mgpsogui/gui/SetupTab/BoundsEditorWindow.py,sha256=U64oaiDIOaimjbqKMz5rQNq2o1SrQ
|
|
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
14
|
mgpsogui/gui/SetupTab/CustomFunctionEditorWindow.py,sha256=yx0dHSNa7fGy99Q6qFcI6j9r8p0DlV3iOBgyPMGd8pM,2884
|
15
|
-
mgpsogui/gui/SetupTab/CustomFunctionMetrics.py,sha256=
|
15
|
+
mgpsogui/gui/SetupTab/CustomFunctionMetrics.py,sha256=QeMj8GA7TLDVfMmpFUgEl1YA39qEOECNlfJX5a03uig,5786
|
16
16
|
mgpsogui/gui/SetupTab/FunctionsList.py,sha256=cMBv87GeRACiJ1DPxFrPvZJOZ3fK6FUVAeUaQCR9dn0,6375
|
17
17
|
mgpsogui/gui/SetupTab/ListEditor.py,sha256=vlP0KDPu8J1_6KXuUTlE7OClgfF0Qk6cISsFm_SglUw,3232
|
18
18
|
mgpsogui/gui/SetupTab/ListParametersView.py,sha256=wYcDcaooYkw-y7XW6dJUwhTWxLuUUOK5tGUFVHBf3ck,7352
|
@@ -62,8 +62,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
|
|
62
62
|
mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
|
63
63
|
mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
|
64
64
|
mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
|
65
|
-
mg_pso_gui-0.1.
|
66
|
-
mg_pso_gui-0.1.
|
67
|
-
mg_pso_gui-0.1.
|
68
|
-
mg_pso_gui-0.1.
|
69
|
-
mg_pso_gui-0.1.
|
65
|
+
mg_pso_gui-0.1.229.dist-info/METADATA,sha256=Wx2I6xwm0NQoNMfkV6d6mDPiggoC17scM-oLJGXY5YI,9456
|
66
|
+
mg_pso_gui-0.1.229.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
67
|
+
mg_pso_gui-0.1.229.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
68
|
+
mg_pso_gui-0.1.229.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
69
|
+
mg_pso_gui-0.1.229.dist-info/RECORD,,
|
@@ -66,6 +66,19 @@ class CustomFunctionsMetricsView(CTkScrollableFrame):
|
|
66
66
|
"rmse": True,
|
67
67
|
"trmse": True}
|
68
68
|
|
69
|
+
equation = self.option_manager.get_steps()[self.step_index]["objfunc"][self.functions_index]["custom_function"].get()
|
70
|
+
|
71
|
+
# Example equation (0 * (1 - ns)) + (bias * 0) + (pbias * 0) + (absdiff * 0)
|
72
|
+
if equation != "":
|
73
|
+
equation = equation.replace("1 - ", "")
|
74
|
+
equation = equation.replace("(", "")
|
75
|
+
equation = equation.replace(")", "")
|
76
|
+
equation = equation.replace(" ", "")
|
77
|
+
pairs = equation.split("+")
|
78
|
+
for pair in pairs:
|
79
|
+
key, value = pair.split("*")
|
80
|
+
self.add_key(key, value)
|
81
|
+
|
69
82
|
self.render()
|
70
83
|
|
71
84
|
def clear(self):
|
@@ -133,7 +146,7 @@ class CustomFunctionsMetricsView(CTkScrollableFrame):
|
|
133
146
|
if positiveBest:
|
134
147
|
equation += f"({name} * {weight}) + "
|
135
148
|
else:
|
136
|
-
equation += f"(
|
149
|
+
equation += f"((1 - {name}) * {weight}) + "
|
137
150
|
|
138
151
|
equation = equation[:-3] # Remove the last " + "
|
139
152
|
|
File without changes
|
File without changes
|
File without changes
|