mg-pso-gui 0.1.95__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.1.95
3
+ Version: 0.1.96
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -40,14 +40,14 @@ mgpsogui/util/CTkToolTip/ctk_tooltip.py,sha256=SZMovpQIGvdpDRbqCKl9SHs92DrFCO2MO
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=dc45ZlysCnqhag5WFyxOMd87a5Xx5r4WDdWcGk_3VNw,12590
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.95.dist-info/METADATA,sha256=P-Z2Vlr3KoV_aAGwE6TEDRjF2DDLsO2fdCgwyfUFScE,9458
50
- mg_pso_gui-0.1.95.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
51
- mg_pso_gui-0.1.95.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
52
- mg_pso_gui-0.1.95.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
53
- mg_pso_gui-0.1.95.dist-info/RECORD,,
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,,
@@ -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),