mg-pso-gui 0.1.94__py3-none-any.whl → 0.1.96__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.94.dist-info → mg_pso_gui-0.1.96.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.1.94.dist-info → mg_pso_gui-0.1.96.dist-info}/RECORD +7 -7
- mgpsogui/util/PSORunner.py +2 -2
- mgpsogui/util/recosu/pso/pso.py +10 -0
- {mg_pso_gui-0.1.94.dist-info → mg_pso_gui-0.1.96.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.1.94.dist-info → mg_pso_gui-0.1.96.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.1.94.dist-info → mg_pso_gui-0.1.96.dist-info}/top_level.txt +0 -0
|
@@ -33,21 +33,21 @@ mgpsogui/gui/images/test.png,sha256=MUnVpRK-isxhEHzx4Q6Yh0M6FRZD1qvgCHH2XmiSBbk,
|
|
|
33
33
|
mgpsogui/gui/images/trash.png,sha256=j8cf0kWbJd-4Jp20lUVV1o1NSeQ4v1Ej4gfcIA3DVRQ,2958
|
|
34
34
|
mgpsogui/gui/images/up.png,sha256=AQvFWCUqSQNaQ1E6LKZ9zNfSvW6t4mgy8uswdg9T2Hg,2457
|
|
35
35
|
mgpsogui/util/GraphGenerator.py,sha256=HhUsFUFhCv3wTYV8CTqU0wo56Ph9c1DocPj25AVIAdI,15076
|
|
36
|
-
mgpsogui/util/PSORunner.py,sha256=
|
|
36
|
+
mgpsogui/util/PSORunner.py,sha256=79GCLkyO2AG41uMGskRzA6PAOchDKUkDEheLi3tKDWk,3481
|
|
37
37
|
mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
38
|
mgpsogui/util/CTkToolTip/__init__.py,sha256=G1jxV55hGtGgwyC1sR-uUUdasDdh0XZgcI-aILgGYA0,225
|
|
39
39
|
mgpsogui/util/CTkToolTip/ctk_tooltip.py,sha256=SZMovpQIGvdpDRbqCKl9SHs92DrFCO2MOYL2ifolvOE,6329
|
|
40
40
|
mgpsogui/util/recosu/__init__.py,sha256=T7_iigIlowGbPOHLO3hwihjw2kbwIg6olOMhFhNiL38,236
|
|
41
41
|
mgpsogui/util/recosu/pso/__init__.py,sha256=PQ548aEKVOk6MMzxxDg7yMO_1hHfoEoYLLkGLeij73Y,247
|
|
42
42
|
mgpsogui/util/recosu/pso/csip_access.py,sha256=jBli1MSShUUwQCMKOUvMaGuNwBViCrjXJi_FmSEJsZA,2721
|
|
43
|
-
mgpsogui/util/recosu/pso/pso.py,sha256=
|
|
43
|
+
mgpsogui/util/recosu/pso/pso.py,sha256=GCKecDTjtjD8tOg67swkf0lFfv84vGXWJ34E7Ask_1s,12827
|
|
44
44
|
mgpsogui/util/recosu/utils/__init__.py,sha256=TXz_TpNif2GeGu22pzTnkUQvaP-PmLQ9Sz4BgMIS6ig,196
|
|
45
45
|
mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvarrMRXJMbDBWqI8,3023
|
|
46
46
|
mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
|
|
47
47
|
mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
|
|
48
48
|
mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
|
|
49
|
-
mg_pso_gui-0.1.
|
|
50
|
-
mg_pso_gui-0.1.
|
|
51
|
-
mg_pso_gui-0.1.
|
|
52
|
-
mg_pso_gui-0.1.
|
|
53
|
-
mg_pso_gui-0.1.
|
|
49
|
+
mg_pso_gui-0.1.96.dist-info/METADATA,sha256=So-3i9StUZe-MohUQrRvRh6xef1z6qnGC3YF4N_-yPY,9458
|
|
50
|
+
mg_pso_gui-0.1.96.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
51
|
+
mg_pso_gui-0.1.96.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
|
52
|
+
mg_pso_gui-0.1.96.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
|
53
|
+
mg_pso_gui-0.1.96.dist-info/RECORD,,
|
mgpsogui/util/PSORunner.py
CHANGED
|
@@ -87,8 +87,8 @@ def run_process(stdout_queue, stderr_queue, results_queue, cosu_queue, data, fol
|
|
|
87
87
|
'async_call': True if calibration_map['async_call'] == "True" else False,
|
|
88
88
|
'http_conn_timeout': int(calibration_map['conn_timeout']),
|
|
89
89
|
'http_read_timeout': int(calibration_map['read_timeout']),
|
|
90
|
-
'particles_fail': int(calibration_map['particles_fail'])
|
|
91
|
-
|
|
90
|
+
'particles_fail': int(calibration_map['particles_fail']),
|
|
91
|
+
'step_trace': os.path.join(folder, 'trace.json')
|
|
92
92
|
},
|
|
93
93
|
result_queue = cosu_queue
|
|
94
94
|
)
|
mgpsogui/util/recosu/pso/pso.py
CHANGED
|
@@ -178,15 +178,21 @@ def global_best(steps: Dict, rounds: Tuple, args: Dict, n_particles: int, iters:
|
|
|
178
178
|
step_trace['steps'] = copy.deepcopy(steps)
|
|
179
179
|
#step_trace['args'] = args BUG MUST BE REMOVED
|
|
180
180
|
|
|
181
|
+
print("Starting PSO with {} rounds, {} threads, {} particles, {} iterations, {} steps")
|
|
182
|
+
|
|
181
183
|
if step_file is not None:
|
|
182
184
|
with open(step_file, "w") as fo:
|
|
183
185
|
json.dump(step_trace, fo)
|
|
184
186
|
|
|
187
|
+
print("Wrote step trace")
|
|
188
|
+
|
|
185
189
|
# best round cost
|
|
186
190
|
best_round_cost = np.inf
|
|
187
191
|
|
|
188
192
|
# request queue for worker
|
|
189
193
|
req_queue = queue.Queue()
|
|
194
|
+
|
|
195
|
+
print("Created queue")
|
|
190
196
|
|
|
191
197
|
conf = conf or {}
|
|
192
198
|
done = False
|
|
@@ -199,6 +205,8 @@ def global_best(steps: Dict, rounds: Tuple, args: Dict, n_particles: int, iters:
|
|
|
199
205
|
thread_pool.append(worker)
|
|
200
206
|
worker.start()
|
|
201
207
|
|
|
208
|
+
print("Started worker threads")
|
|
209
|
+
|
|
202
210
|
r_below = 0
|
|
203
211
|
early_exit = False
|
|
204
212
|
start_time = datetime.datetime.now()
|
|
@@ -222,6 +230,8 @@ def global_best(steps: Dict, rounds: Tuple, args: Dict, n_particles: int, iters:
|
|
|
222
230
|
args['req_queue'] = req_queue
|
|
223
231
|
args['conf'] = conf
|
|
224
232
|
|
|
233
|
+
print("Calling global best..")
|
|
234
|
+
|
|
225
235
|
# create optimizer in the first round.
|
|
226
236
|
if optimizer[s] is None:
|
|
227
237
|
optimizer[s] = GlobalBestPSO(step.get('n_particles', n_particles),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|