mg-pso-gui 0.0.191__tar.gz → 0.0.193__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/PKG-INFO +1 -1
  2. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mg_pso_gui.egg-info/PKG-INFO +1 -1
  3. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/HomePage.py +13 -4
  4. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +2 -2
  5. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/util/PSORunner.py +3 -1
  6. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/setup.py +1 -1
  7. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
  8. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
  9. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mg_pso_gui.egg-info/entry_points.txt +0 -0
  10. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mg_pso_gui.egg-info/requires.txt +0 -0
  11. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mg_pso_gui.egg-info/top_level.txt +0 -0
  12. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/__init__.py +0 -0
  13. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/OptionManager.py +0 -0
  14. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
  15. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
  16. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/RunTab/RunTab.py +0 -0
  17. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/RunTab/__init__.py +0 -0
  18. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
  19. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
  20. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
  21. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
  22. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
  23. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
  24. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
  25. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/SetupTab/StepView.py +0 -0
  26. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/SetupTab/__init__.py +0 -0
  27. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
  28. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/__init__.py +0 -0
  29. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/images/collapse.png +0 -0
  30. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/images/down.png +0 -0
  31. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/images/expand.png +0 -0
  32. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/images/play.png +0 -0
  33. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/images/refresh.png +0 -0
  34. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/images/refresh_hd.png +0 -0
  35. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/images/stop.png +0 -0
  36. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/images/trash.png +0 -0
  37. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/gui/images/up.png +0 -0
  38. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/mgpsogui.py +0 -0
  39. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/start.yaml +0 -0
  40. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
  41. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
  42. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/util/GraphGenerator.py +0 -0
  43. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/mgpsogui/util/__init__.py +0 -0
  44. {mg-pso-gui-0.0.191 → mg-pso-gui-0.0.193}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.0.191
3
+ Version: 0.0.193
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.0.191
3
+ Version: 0.0.193
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -193,7 +193,7 @@ class App(customtkinter.CTk):
193
193
  self.graph_image_obj = Image.open(image_path)
194
194
  self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(self.image_width, self.image_height))
195
195
  self.graph_label.configure(image=self.graph_image)
196
- elif (selected_graph == "Table"):
196
+ elif (selected_graph == "Iteration Table"):
197
197
  self.selected_graph_name = "table"
198
198
  image_path = os.path.join(folder, self.selected_graph_name + ".png")
199
199
  if not os.path.exists(image_path):
@@ -341,8 +341,8 @@ class App(customtkinter.CTk):
341
341
  info = self.option_manager.get_project_data()
342
342
  folder = os.path.join(info['path'], info['name'])
343
343
 
344
-
345
- self.train_process = Process(target=PSORunner.run_process, args=(metrics, folder))
344
+ self.process_queue = Queue()
345
+ self.train_process = Process(target=PSORunner.run_process, args=(self.process_queue, metrics, folder))
346
346
  self.train_process.daemon = True
347
347
  self.train_process.start()
348
348
  self.after(1000, self.watch_loop)
@@ -504,6 +504,16 @@ class App(customtkinter.CTk):
504
504
  if self.train_process.is_alive():
505
505
  self.after(1000, self.watch_loop)
506
506
  else:
507
+ # Check if queue is empty
508
+ if (self.process_queue.empty()):
509
+ print("PROCESS FINISHED BUT WE GOT NO OBJECTS :(")
510
+ self.footer_progress_label.configure(text="Failed")
511
+ else:
512
+ self.final_results = self.process_queue.get()
513
+ print("PROCESS FINISHED WE GOT THINGS")
514
+ print(self.final_results)
515
+ self.footer_progress_label.configure(text="Finished")
516
+
507
517
  #self.progress_bar.stop()
508
518
  self.footer_progress_bar.stop()
509
519
  #self.progress_bar.configure(mode="indeterminate")
@@ -513,7 +523,6 @@ class App(customtkinter.CTk):
513
523
  self.progress_message_left.configure(text="")
514
524
  self.progress_message_middle.configure(text="Calibration finished!")
515
525
  self.progress_message_right.configure(text="")
516
- self.footer_progress_label.configure(text="Finished")
517
526
  self.textbox.insert("0.0", "\nCalibration finished!\n")
518
527
 
519
528
  def start():
@@ -61,11 +61,11 @@ def create_tab(self, tab):
61
61
 
62
62
  self.graph_selector_value = tk.StringVar()
63
63
  self.graph_selector_value.set("Best Cost Stacked")
64
- self.graph_selector = customtkinter.CTkOptionMenu(self.graph_sidebar, values=["Best Cost Stacked", "Best Cost by Round", "Calibrated Parameters", "Table"], variable=self.graph_selector_value, command=self.update_graph)
64
+ self.graph_selector = customtkinter.CTkOptionMenu(self.graph_sidebar, width=250, values=["Best Cost Stacked", "Best Cost by Round", "Calibrated Parameters", "Iteration Table"], variable=self.graph_selector_value, command=self.update_graph)
65
65
  self.graph_selector.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
66
66
 
67
67
  # Add a button to call open_graph_in_browser
68
- self.graph_button = customtkinter.CTkButton(self.graph_sidebar, text="Open Graph in Browser", command=open_graph_in_browser)
68
+ self.graph_button = customtkinter.CTkButton(self.graph_sidebar, text="Open in Browser", width=250, command=open_graph_in_browser)
69
69
  self.graph_button.grid(row=9, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
70
70
 
71
71
  self.graph_image_obj = Image.open(os.path.join("./images", "refresh_hd.png"))
@@ -8,7 +8,7 @@ import os
8
8
 
9
9
  from cosu.pso import global_best
10
10
 
11
- def run_process(data, folder):
11
+ def run_process(process_queue, data, folder):
12
12
  steps = data['steps']
13
13
  args = data['arguments']
14
14
  calib = data['calibration_parameters']
@@ -69,4 +69,6 @@ def run_process(data, folder):
69
69
  'particles_fail': int(calibration_map['particles_fail'])
70
70
  },
71
71
  )
72
+
73
+ process_queue.put((optimizer, trace))
72
74
 
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
  import codecs
3
3
  import os
4
4
 
5
- VERSION = '0.0.191'
5
+ VERSION = '0.0.193'
6
6
  DESCRIPTION = 'GUI for MG-PSO'
7
7
  LONG_DESCRIPTION = open('../README.md').read()
8
8
 
File without changes