mg-pso-gui 0.2.101__py3-none-any.whl → 0.2.103__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.2.101
3
+ Version: 0.2.103
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -20,7 +20,7 @@ Requires-Dist: customtkinter
20
20
  Requires-Dist: plotly
21
21
  Requires-Dist: csip
22
22
  Requires-Dist: csip-cosu
23
- Requires-Dist: kaleido
23
+ Requires-Dist: kaleido==0.1.0.post1
24
24
  Requires-Dist: pillow
25
25
 
26
26
  # Multigroup PSO GUI
@@ -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=qnrbwfWKuSX6z2BEuRwLMfCe88WC55dFbBbvEe5PtFI,23626
4
+ mgpsogui/gui/HomePage.py,sha256=2wtyb61ivsKktg8Au1t3hp9vcTcZ_Qeh-vBGXoDmCIc,24104
5
5
  mgpsogui/gui/OptionManager.py,sha256=W--xBfiaQdeJPr5RipPcyWtK5RB81MUiQ_lJWzQK5OI,22650
6
6
  mgpsogui/gui/OptionManager_backup.py,sha256=TCWfPnHL2foN5id47jsi267lamRG6yGU6y_M29eOOJk,18530
7
7
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -48,7 +48,7 @@ mgpsogui/gui/images/trash.png,sha256=j8cf0kWbJd-4Jp20lUVV1o1NSeQ4v1Ej4gfcIA3DVRQ
48
48
  mgpsogui/gui/images/up.png,sha256=AQvFWCUqSQNaQ1E6LKZ9zNfSvW6t4mgy8uswdg9T2Hg,2457
49
49
  mgpsogui/gui/messages/welcome.txt,sha256=fPuBbYcIso3p26vpyLBK0V7FPyk7JQDhyTnVClJFttc,5984
50
50
  mgpsogui/util/GraphGenerator.py,sha256=LHHDCvBuJQ0RYQm0azi5tC-etrZ1KLQh-tkahVurPSI,31990
51
- mgpsogui/util/PSORunner.py,sha256=mTveURj8HGCwB5VHzvN9ELUhKtVzuynuQc8zJm4IFNs,15764
51
+ mgpsogui/util/PSORunner.py,sha256=G_s3lYpbvguPHyVERubPZHYik4G00t9NMtlRr8j-Rb4,15289
52
52
  mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  mgpsogui/util/debug.py,sha256=Swzny9_1S-CCONWGssj9iDoSpbwu5Vr4f95g_9L8bec,19759
54
54
  mgpsogui/util/helpers.py,sha256=Ht2rge_4pGO7halz6KoLsL2eukB0k2tlkx68lBBmBA8,2669
@@ -73,8 +73,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
73
73
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
74
74
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
75
75
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
76
- mg_pso_gui-0.2.101.dist-info/METADATA,sha256=3cxAV5Z54FU4K9TRRsHk4HFyWdBcC9bmDxxdmRE3sw8,9456
77
- mg_pso_gui-0.2.101.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
78
- mg_pso_gui-0.2.101.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
79
- mg_pso_gui-0.2.101.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
80
- mg_pso_gui-0.2.101.dist-info/RECORD,,
76
+ mg_pso_gui-0.2.103.dist-info/METADATA,sha256=PLi8JNDylohWrqtma91rF-FAgonRIahV9R2hks8Y_ro,9469
77
+ mg_pso_gui-0.2.103.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
78
+ mg_pso_gui-0.2.103.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
79
+ mg_pso_gui-0.2.103.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
80
+ mg_pso_gui-0.2.103.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -313,6 +313,8 @@ class App(customtkinter.CTk):
313
313
  self.option_manager.load_project(filename)
314
314
  self.option_manager.set_path(filename)
315
315
 
316
+ self.algorithm_optionmenu.set(self.option_manager.get_mode())
317
+
316
318
  folder = self.option_manager.get_project_folder()
317
319
  if not os.path.exists(folder):
318
320
  os.makedirs(folder)
@@ -420,6 +422,20 @@ class App(customtkinter.CTk):
420
422
  self.textbox.insert("0.0", json.dumps(data, indent=4) + "\n\n")
421
423
  try:
422
424
  folder = self.option_manager.get_project_folder()
425
+
426
+ # Setup folders
427
+ if not os.path.exists(folder):
428
+ os.makedirs(folder)
429
+
430
+ if not os.path.exists(os.path.join(folder, "results")):
431
+ os.makedirs(os.path.join(folder, "results"))
432
+
433
+ if (os.path.exists(os.path.join(folder, 'output.txt'))):
434
+ os.remove(os.path.join(folder, 'output.txt'))
435
+
436
+ if (os.path.exists(os.path.join(folder, 'error.txt'))):
437
+ os.remove(os.path.join(folder, 'error.txt'))
438
+
423
439
 
424
440
  self.train_process = Process(target=PSORunner.run_process, args=(stdout_queue, stderr_queue, results_queue, data, folder, mode))
425
441
  self.train_process.daemon = True
@@ -44,18 +44,6 @@ def run_process(stdout_queue, stderr_queue, results_queue, data, folder, mode):
44
44
  mode (_type_): _description_
45
45
  """
46
46
  try:
47
- # Setup folders
48
- if not os.path.exists(folder):
49
- os.makedirs(folder)
50
-
51
- if not os.path.exists(os.path.join(folder, "results")):
52
- os.makedirs(os.path.join(folder, "results"))
53
-
54
- if (os.path.exists(os.path.join(folder, 'output.txt'))):
55
- os.remove(os.path.join(folder, 'output.txt'))
56
-
57
- if (os.path.exists(os.path.join(folder, 'error.txt'))):
58
- os.remove(os.path.join(folder, 'error.txt'))
59
47
 
60
48
  # Redirect stdout and stderr to files
61
49
  old_stdout = sys.stdout