mg-pso-gui 0.0.205__py3-none-any.whl → 0.0.207__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.0.205
3
+ Version: 0.0.207
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,7 +1,7 @@
1
1
  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
- mgpsogui/gui/HomePage.py,sha256=jj37ZWk1JklG-bqSVMAoULuTZFSXTTZoDtTFWkGhkdY,25555
4
+ mgpsogui/gui/HomePage.py,sha256=iJxoXjGffCPjRFsGZ1-cMZ8pBrxFLUlabnJcUQ3lmVg,25561
5
5
  mgpsogui/gui/OptionManager.py,sha256=bFN2jWJbx1Din3waOFLmbWGt0BXD_KthGJ8Mgue_FEE,11712
6
6
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=KyIoHlMKD9nfQqHeGJwRDA4RCoe4UykjB2l6xMTKK_M,10486
@@ -30,12 +30,12 @@ mgpsogui/gui/images/stop.png,sha256=JPuxXQerCGpLikcp7cAj3iLCOjULMYYZ2sZe0lArh68,
30
30
  mgpsogui/gui/images/trash.png,sha256=j8cf0kWbJd-4Jp20lUVV1o1NSeQ4v1Ej4gfcIA3DVRQ,2958
31
31
  mgpsogui/gui/images/up.png,sha256=AQvFWCUqSQNaQ1E6LKZ9zNfSvW6t4mgy8uswdg9T2Hg,2457
32
32
  mgpsogui/util/GraphGenerator.py,sha256=hEPhka0ZKQJ9DSSywDfwoXFQMsk3RHyG8QyTLOQnN4M,7851
33
- mgpsogui/util/PSORunner.py,sha256=OOVomWTHyiRyZt1SFo7yUtoyMce3o88b0d5JYIC47bU,6715
33
+ mgpsogui/util/PSORunner.py,sha256=--Cx3si3lKbgFW63724dPVa75CPkv-izEpwnNmGdMQU,6936
34
34
  mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  mgpsogui/util/CTkToolTip/__init__.py,sha256=G1jxV55hGtGgwyC1sR-uUUdasDdh0XZgcI-aILgGYA0,225
36
36
  mgpsogui/util/CTkToolTip/ctk_tooltip.py,sha256=SZMovpQIGvdpDRbqCKl9SHs92DrFCO2MOYL2ifolvOE,6329
37
- mg_pso_gui-0.0.205.dist-info/METADATA,sha256=sxR9FfWhWC2KhulkIr3IL8f1ntp1fUki6DuOymk5TgQ,9459
38
- mg_pso_gui-0.0.205.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
39
- mg_pso_gui-0.0.205.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
40
- mg_pso_gui-0.0.205.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
41
- mg_pso_gui-0.0.205.dist-info/RECORD,,
37
+ mg_pso_gui-0.0.207.dist-info/METADATA,sha256=U1Fzz6hhAjI0iCtqzUgNJyO0zyNYT-nqpWaQD21jePc,9459
38
+ mg_pso_gui-0.0.207.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
39
+ mg_pso_gui-0.0.207.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
40
+ mg_pso_gui-0.0.207.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
41
+ mg_pso_gui-0.0.207.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -413,9 +413,9 @@ class App(customtkinter.CTk):
413
413
  try:
414
414
  stdout_line = stdout_queue.get_nowait()
415
415
 
416
- print("#" + stdout_line)
417
- with open(os.path.join(folder, 'output.txt'), 'a') as f:
418
- f.write(stdout_line)
416
+ print("# " + stdout_line)
417
+ #with open(os.path.join(folder, 'output.txt'), 'a') as f:
418
+ # f.write(stdout_line)
419
419
 
420
420
  except Empty:
421
421
  break
@@ -424,9 +424,9 @@ class App(customtkinter.CTk):
424
424
  try:
425
425
  stderr_line = stderr_queue.get_nowait()
426
426
 
427
- print("?" + stderr_line)
428
- with open(os.path.join(folder, 'error.txt'), 'a') as f:
429
- f.write(stderr_line)
427
+ print("? " + stderr_line)
428
+ #with open(os.path.join(folder, 'error.txt'), 'a') as f:
429
+ # f.write(stderr_line)
430
430
 
431
431
  except Empty:
432
432
  break
@@ -13,6 +13,11 @@ def enqueue_output(out, queue):
13
13
  for line in iter(out.readline, b''):
14
14
  queue.put(line)
15
15
  out.close()
16
+
17
+ def frozen_check():
18
+ while True:
19
+ print("NOT FROZEN")
20
+ time.sleep(5)
16
21
 
17
22
  def run_process(stdout_queue, stderr_queue, results_queue, data, folder):
18
23
  steps = data['steps']
@@ -33,7 +38,6 @@ def run_process(stdout_queue, stderr_queue, results_queue, data, folder):
33
38
 
34
39
  if (os.path.exists(os.path.join(folder, 'error.txt'))):
35
40
  os.remove(os.path.join(folder, 'error.txt'))
36
-
37
41
 
38
42
  old_stdout = sys.stdout
39
43
  old_stderr = sys.stderr
@@ -51,6 +55,10 @@ def run_process(stdout_queue, stderr_queue, results_queue, data, folder):
51
55
  stdour_thread.start()
52
56
  stderr_thread.start()
53
57
 
58
+ frozen_check_thread = threading.Thread(target=frozen_check)
59
+ frozen_check_thread.daemon = True
60
+ frozen_check_thread.start()
61
+
54
62
  options = {}
55
63
  oh_strategy = {}
56
64