mg-pso-gui 0.1.22__tar.gz → 0.1.24__tar.gz

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.
Files changed (55) hide show
  1. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/PKG-INFO +1 -1
  2. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mg_pso_gui.egg-info/PKG-INFO +1 -1
  3. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/HomePage.py +6 -4
  4. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/GraphGenerator.py +29 -23
  5. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/setup.py +1 -1
  6. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
  7. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
  8. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mg_pso_gui.egg-info/entry_points.txt +0 -0
  9. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mg_pso_gui.egg-info/requires.txt +0 -0
  10. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mg_pso_gui.egg-info/top_level.txt +0 -0
  11. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/__init__.py +0 -0
  12. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/OptionManager.py +0 -0
  13. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
  14. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
  15. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/RunTab/RunTab.py +0 -0
  16. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/RunTab/__init__.py +0 -0
  17. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
  18. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
  19. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
  20. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
  21. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
  22. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
  23. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
  24. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/SetupTab/StepView.py +0 -0
  25. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/SetupTab/__init__.py +0 -0
  26. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +0 -0
  27. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
  28. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/__init__.py +0 -0
  29. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/images/IGOW 4 Logo.png +0 -0
  30. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/images/collapse.png +0 -0
  31. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/images/down.png +0 -0
  32. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/images/expand.png +0 -0
  33. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/images/play.png +0 -0
  34. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/images/refresh.png +0 -0
  35. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/images/refresh_hd.png +0 -0
  36. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/images/stop.png +0 -0
  37. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/images/test.png +0 -0
  38. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/images/trash.png +0 -0
  39. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/gui/images/up.png +0 -0
  40. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/mgpsogui.py +0 -0
  41. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/start.yaml +0 -0
  42. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
  43. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
  44. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/PSORunner.py +0 -0
  45. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/__init__.py +0 -0
  46. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/recosu/__init__.py +0 -0
  47. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/recosu/pso/__init__.py +0 -0
  48. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/recosu/pso/csip_access.py +0 -0
  49. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/recosu/pso/pso.py +0 -0
  50. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/recosu/utils/__init__.py +0 -0
  51. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/recosu/utils/plot/__init__.py +0 -0
  52. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/recosu/utils/plot/cost_steps.py +0 -0
  53. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/recosu/utils/trace_writer.py +0 -0
  54. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/mgpsogui/util/recosu/utils/utils.py +0 -0
  55. {mg-pso-gui-0.1.22 → mg-pso-gui-0.1.24}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.1.22
3
+ Version: 0.1.24
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.1.22
3
+ Version: 0.1.24
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -177,6 +177,9 @@ class App(customtkinter.CTk):
177
177
 
178
178
  self.after(1000, self.running_loop)
179
179
 
180
+ def update_graph(self):
181
+ GraphGenerator.generate_graphs(self)
182
+
180
183
  '''def _resize_image(self, event):
181
184
  self.graph_label.update_idletasks()
182
185
  new_width = self.graph_label.winfo_width()
@@ -195,8 +198,9 @@ class App(customtkinter.CTk):
195
198
 
196
199
  self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(new_width, new_height))
197
200
  self.graph_label.configure(image=self.graph_image)
198
- self.graph_label.update_idletasks()'''
201
+ self.graph_label.update_idletasks()
199
202
 
203
+
200
204
  def update_graph(self, value):
201
205
  selected_graph = self.graph_selector_value.get()
202
206
  info = self.option_manager.get_project_data()
@@ -219,7 +223,7 @@ class App(customtkinter.CTk):
219
223
  image_path = os.path.join("./images", "up.png")
220
224
  self.graph_image_obj = Image.open(image_path)
221
225
  self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(self.image_width * self.image_scale, self.image_height * self.image_scale))
222
- self.graph_label.configure(image=self.graph_image)
226
+ self.graph_label.configure(image=self.graph_image)'''
223
227
 
224
228
  def save_project(self):
225
229
  metrics = self.option_manager.get_metrics()
@@ -439,8 +443,6 @@ class App(customtkinter.CTk):
439
443
  active_tab = self.tabview.get()
440
444
  if (active_tab == "Results"):
441
445
  GraphGenerator.generate_graphs(self)
442
- else:
443
- print(active_tab)
444
446
  finally:
445
447
  self.after(1000, self.running_loop)
446
448
 
@@ -4,33 +4,39 @@ import pandas as pd
4
4
  import numpy as np
5
5
  import os
6
6
  from PIL import Image, ImageTk
7
+ import customtkinter
7
8
 
8
9
  def generate_graphs(HomePage):
9
- selected_graph = HomePage.graph_selector_value.get()
10
- info = HomePage.option_manager.get_project_data()
11
- folder = os.path.join(info['path'], info['name'])
12
- if not os.path.exists(folder):
13
- os.makedirs(folder)
10
+ try:
11
+ selected_graph = HomePage.graph_selector_value.get()
12
+ info = HomePage.option_manager.get_project_data()
13
+ folder = os.path.join(info['path'], info['name'])
14
+ if not os.path.exists(folder):
15
+ os.makedirs(folder)
16
+
17
+ if (selected_graph == "Best Cost Stacked"):
18
+ HomePage.selected_graph_name = "best_cost_stacked"
19
+ best_cost_stacked(HomePage.running_config['steps'], HomePage.progress_data, HomePage.option_manager)
20
+ elif (selected_graph == "Best Cost by Round"):
21
+ HomePage.selected_graph_name = "best_cost_by_round"
22
+ best_cost_by_round(HomePage.running_config['steps'], HomePage.progress_data, HomePage.option_manager)
23
+ elif (selected_graph == "Iteration Table"):
24
+ HomePage.selected_graph_name = "table"
25
+ table(HomePage.running_config['steps'], HomePage.progress_data, HomePage.option_manager)
26
+ elif (selected_graph == "Calibrated Parameters"):
27
+ HomePage.selected_graph_name = "calibrated_params_by_round"
28
+ calibrated_params_by_round(HomePage.running_config['steps'], HomePage.calibration_data, HomePage.option_manager)
29
+
30
+ image_path = os.path.join(folder, HomePage.selected_graph_name + ".png")
14
31
 
15
- if (selected_graph == "Best Cost Stacked"):
16
- HomePage.selected_graph_name = "best_cost_stacked"
17
- best_cost_stacked(HomePage.running_config['steps'], HomePage.progress_data, HomePage.option_manager)
18
- elif (selected_graph == "Best Cost by Round"):
19
- HomePage.selected_graph_name = "best_cost_by_round"
20
- best_cost_by_round(HomePage.running_config['steps'], HomePage.progress_data, HomePage.option_manager)
21
- elif (selected_graph == "Iteration Table"):
22
- HomePage.selected_graph_name = "table"
23
- table(HomePage.running_config['steps'], HomePage.progress_data, HomePage.option_manager)
24
- elif (selected_graph == "Calibrated Parameters"):
25
- HomePage.selected_graph_name = "calibrated_params_by_round"
26
- calibrated_params_by_round(HomePage.running_config['steps'], HomePage.calibration_data, HomePage.option_manager)
32
+ if not os.path.exists(image_path):
33
+ image_path = os.path.join("./images", "up.png")
27
34
 
28
- image_path = os.path.join(folder, HomePage.selected_graph_name + ".png")
29
-
30
- if not os.path.exists(image_path):
31
- image_path = os.path.join("./images", "up.png")
32
-
33
- HomePage.graph_image_obj = Image.open(image_path)
35
+ HomePage.graph_image_obj = Image.open(image_path)
36
+ HomePage.graph_image = customtkinter.CTkImage(HomePage.graph_image_obj, size=(HomePage.image_width * HomePage.image_scale, HomePage.image_height * HomePage.image_scale))
37
+ HomePage.graph_label.configure(image=HomePage.graph_image)
38
+ except Exception as e:
39
+ pass
34
40
 
35
41
  def best_cost_stacked(config, dataframe, option_manager):
36
42
  fig = go.Figure()
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
  import codecs
3
3
  import os
4
4
 
5
- VERSION = '0.1.22'
5
+ VERSION = '0.1.24'
6
6
  DESCRIPTION = 'GUI for MG-PSO'
7
7
  LONG_DESCRIPTION = open('../README.md').read()
8
8
 
File without changes