mg-pso-gui 0.1.202__py3-none-any.whl → 0.1.204__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.202.dist-info → mg_pso_gui-0.1.204.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.1.202.dist-info → mg_pso_gui-0.1.204.dist-info}/RECORD +6 -6
- mgpsogui/util/PSORunner.py +32 -8
- {mg_pso_gui-0.1.202.dist-info → mg_pso_gui-0.1.204.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.1.202.dist-info → mg_pso_gui-0.1.204.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.1.202.dist-info → mg_pso_gui-0.1.204.dist-info}/top_level.txt +0 -0
@@ -35,7 +35,7 @@ mgpsogui/gui/images/test.png,sha256=MUnVpRK-isxhEHzx4Q6Yh0M6FRZD1qvgCHH2XmiSBbk,
|
|
35
35
|
mgpsogui/gui/images/trash.png,sha256=j8cf0kWbJd-4Jp20lUVV1o1NSeQ4v1Ej4gfcIA3DVRQ,2958
|
36
36
|
mgpsogui/gui/images/up.png,sha256=AQvFWCUqSQNaQ1E6LKZ9zNfSvW6t4mgy8uswdg9T2Hg,2457
|
37
37
|
mgpsogui/util/GraphGenerator.py,sha256=OyCPwIDkbRzNZiJQII3F76yTKj_EdeMiE8vaih-n5lE,22811
|
38
|
-
mgpsogui/util/PSORunner.py,sha256=
|
38
|
+
mgpsogui/util/PSORunner.py,sha256=ELpRgEpUiLV4hW-A-y4yzfkFN1BXgH7LZ0qlwWBRz3s,11012
|
39
39
|
mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
40
40
|
mgpsogui/util/debug.py,sha256=Swzny9_1S-CCONWGssj9iDoSpbwu5Vr4f95g_9L8bec,19759
|
41
41
|
mgpsogui/util/helpers.py,sha256=Ht2rge_4pGO7halz6KoLsL2eukB0k2tlkx68lBBmBA8,2669
|
@@ -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.204.dist-info/METADATA,sha256=tdWt8lx-iN5HvTlUc5fXK6YG-19LCCGsH_ES9YttD4Q,9456
|
64
|
+
mg_pso_gui-0.1.204.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
65
|
+
mg_pso_gui-0.1.204.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
66
|
+
mg_pso_gui-0.1.204.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
67
|
+
mg_pso_gui-0.1.204.dist-info/RECORD,,
|
mgpsogui/util/PSORunner.py
CHANGED
@@ -11,6 +11,7 @@ from csip import Client
|
|
11
11
|
import traceback
|
12
12
|
import urllib
|
13
13
|
import shutil
|
14
|
+
import json
|
14
15
|
|
15
16
|
def enqueue_output(out, queue):
|
16
17
|
for line in iter(out.readline, b''):
|
@@ -123,6 +124,7 @@ def run_process(stdout_queue, stderr_queue, results_queue, data, folder):
|
|
123
124
|
offset=int(calibration_map['offset']))
|
124
125
|
results_queue.put(trace)
|
125
126
|
print(trace, flush=True)
|
127
|
+
print("\n", flush=True)
|
126
128
|
|
127
129
|
elif my_mode == "Sampling: Random":
|
128
130
|
print("Running Random Sampling...\n", flush=True)
|
@@ -135,7 +137,12 @@ def run_process(stdout_queue, stderr_queue, results_queue, data, folder):
|
|
135
137
|
trace_file=os.path.join(folder, 'results', 'random_trace.csv'))
|
136
138
|
results_queue.put(trace)
|
137
139
|
print(trace, flush=True)
|
140
|
+
print("\n", flush=True)
|
141
|
+
|
138
142
|
elif my_mode == "Sensitivity: Halton":
|
143
|
+
|
144
|
+
print("Running Halton Sensitivity Analysis", flush=True)
|
145
|
+
|
139
146
|
shutil.copyfile(os.path.join(folder, 'results', 'halton_trace.csv'), os.path.join(folder, 'results', 'trace.csv'))
|
140
147
|
trace_path = os.path.join(folder, 'results', 'trace.csv')
|
141
148
|
|
@@ -166,13 +173,23 @@ def run_process(stdout_queue, stderr_queue, results_queue, data, folder):
|
|
166
173
|
}
|
167
174
|
]
|
168
175
|
}
|
169
|
-
|
170
|
-
with open(os.path.join(folder, 'results', 'request.json'), 'w') as
|
171
|
-
|
176
|
+
|
177
|
+
with open(os.path.join(folder, 'results', 'request.json'), 'w') as json_file:
|
178
|
+
json.dump(request_json, json_file, indent=4)
|
179
|
+
|
172
180
|
request_path = os.path.join(folder, 'results', 'request.json')
|
173
181
|
|
174
|
-
|
182
|
+
output_directory = os.path.join(folder, 'results')
|
183
|
+
|
184
|
+
print("Starting ", args['url'], request_path, trace_path, output_directory, flush=True)
|
185
|
+
|
186
|
+
sensitivity_analysis(args['url'], request_path, trace_path, output_directory)
|
187
|
+
|
188
|
+
print("Finished Sensitivity Analysis", flush=True)
|
175
189
|
elif my_mode == "Sensitivity: Random":
|
190
|
+
|
191
|
+
print("Running Random Sensitivity Analysis", flush=True)
|
192
|
+
|
176
193
|
shutil.copyfile(os.path.join(folder, 'results', 'random_trace.csv'), os.path.join(folder, 'results', 'trace.csv'))
|
177
194
|
trace_path = os.path.join(folder, 'results', 'trace.csv')
|
178
195
|
|
@@ -203,12 +220,19 @@ def run_process(stdout_queue, stderr_queue, results_queue, data, folder):
|
|
203
220
|
}
|
204
221
|
]
|
205
222
|
}
|
206
|
-
|
207
|
-
with open(os.path.join(folder, 'results', 'request.json'), 'w') as
|
208
|
-
|
223
|
+
|
224
|
+
with open(os.path.join(folder, 'results', 'request.json'), 'w') as json_file:
|
225
|
+
json.dump(request_json, json_file, indent=4)
|
226
|
+
|
209
227
|
request_path = os.path.join(folder, 'results', 'request.json')
|
210
228
|
|
211
|
-
|
229
|
+
output_directory = os.path.join(folder, 'results')
|
230
|
+
|
231
|
+
print("Starting ", args['url'], request_path, trace_path, output_directory, flush=True)
|
232
|
+
|
233
|
+
sensitivity_analysis(args['url'], request_path, trace_path, output_directory)
|
234
|
+
|
235
|
+
print("Finished Sensitivity Analysis", flush=True)
|
212
236
|
else:
|
213
237
|
print("Running MG-PSO Optimization...\n", flush=True)
|
214
238
|
optimizer, trace = global_best(steps,
|
File without changes
|
File without changes
|
File without changes
|