mg-pso-gui 0.2.118__tar.gz → 0.2.120__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 (84) hide show
  1. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/PKG-INFO +1 -1
  2. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mg_pso_gui.egg-info/PKG-INFO +1 -1
  3. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/General/NoticeWindow.py +15 -1
  4. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/HomePage.py +16 -3
  5. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +15 -1
  6. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/CustomFunctionEditorWindow.py +15 -1
  7. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/OverrideParameterWindow.py +15 -1
  8. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/SamplingNameListWindow.py +15 -1
  9. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/setup.py +1 -1
  10. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
  11. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
  12. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mg_pso_gui.egg-info/entry_points.txt +0 -0
  13. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mg_pso_gui.egg-info/requires.txt +0 -0
  14. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mg_pso_gui.egg-info/top_level.txt +0 -0
  15. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/__init__.py +0 -0
  16. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/General/ParameterView.py +0 -0
  17. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/General/__init__.py +0 -0
  18. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/OptionManager.py +0 -0
  19. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/OptionManager_backup.py +0 -0
  20. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
  21. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
  22. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/RunTab/OptimalParameterView.py +0 -0
  23. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/RunTab/RunTab.py +0 -0
  24. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/RunTab/__init__.py +0 -0
  25. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
  26. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/CustomFunctionMetrics.py +0 -0
  27. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
  28. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/ListEditor.py +0 -0
  29. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
  30. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/OverrideParameterMetrics.py +0 -0
  31. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/SamplingListView.py +0 -0
  32. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
  33. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/StepView.py +0 -0
  34. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/SetupTab/__init__.py +0 -0
  35. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/VisualizeTab/MatrixEditor.py +0 -0
  36. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/VisualizeTab/SideBar.py +0 -0
  37. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +0 -0
  38. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
  39. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/__init__.py +0 -0
  40. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/defaults/__init__.py +0 -0
  41. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/defaults/optimization.json +0 -0
  42. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/defaults/sampling.json +0 -0
  43. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/defaults/sensitivity.json +0 -0
  44. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/images/collapse.png +0 -0
  45. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/images/down.png +0 -0
  46. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/images/expand.png +0 -0
  47. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/images/play.png +0 -0
  48. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/images/plus.png +0 -0
  49. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/images/refresh.png +0 -0
  50. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/images/refresh_hd.png +0 -0
  51. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/images/stop.png +0 -0
  52. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/images/test.png +0 -0
  53. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/images/trash.png +0 -0
  54. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/images/up.png +0 -0
  55. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/gui/messages/welcome.txt +0 -0
  56. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/mgpsogui.py +0 -0
  57. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/start.yaml +0 -0
  58. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
  59. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
  60. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/GraphGenerator.py +0 -0
  61. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/PSORunner.py +0 -0
  62. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/__init__.py +0 -0
  63. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/debug.py +0 -0
  64. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/helpers.py +0 -0
  65. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/__init__.py +0 -0
  66. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/pso/__init__.py +0 -0
  67. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/pso/csip_access.py +0 -0
  68. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/pso/pso.py +0 -0
  69. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/sampling/__init__.py +0 -0
  70. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/sampling/halton/__init__.py +0 -0
  71. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/sampling/halton/halton.py +0 -0
  72. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/sampling/halton/prime.py +0 -0
  73. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/sampling/random/__init__.py +0 -0
  74. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/sampling/random/random_sampler.py +0 -0
  75. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/sampling/sample_trace_writer.py +0 -0
  76. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/sampling/sampler_task.py +0 -0
  77. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/sampling/sampling.py +0 -0
  78. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/utils/__init__.py +0 -0
  79. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/utils/plot/__init__.py +0 -0
  80. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/utils/plot/cost_steps.py +0 -0
  81. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/utils/trace_writer.py +0 -0
  82. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/recosu/utils/utils.py +0 -0
  83. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/mgpsogui/util/sampler_test_driver.py +0 -0
  84. {mg_pso_gui-0.2.118 → mg_pso_gui-0.2.120}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.2.118
3
+ Version: 0.2.120
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.2.118
3
+ Version: 0.2.120
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -20,7 +20,21 @@ class NoticeWindow(CTkInputDialog):
20
20
  **kwargs):
21
21
  super().__init__(*args, **kwargs)
22
22
 
23
- self.geometry(str(x) + "x" + str(y))
23
+ screen_width = self.winfo_screenwidth()
24
+ screen_height = self.winfo_screenheight()
25
+ win_width = x
26
+ win_height = y
27
+ if screen_width < win_width:
28
+ win_width = screen_width * 0.9
29
+
30
+ if screen_height < win_height:
31
+ win_height = screen_height * 0.9
32
+
33
+ # Calculate the x and y coordinates to center the window
34
+ x_coord = (screen_width // 2) - (win_width // 2)
35
+ y_coord = (screen_height // 2) - (win_height // 2)
36
+
37
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
24
38
 
25
39
  self.message = message
26
40
 
@@ -113,9 +113,22 @@ class App(customtkinter.CTk):
113
113
  self.calibration_data = None
114
114
  self.testing = False
115
115
 
116
- # configure window
117
- self.title("COSU Manager (v0.2.112)")
118
- self.geometry(f"{1920}x{1080}")
116
+ # Configure window
117
+ self.title("COSU Manager (v0.2.120)")
118
+
119
+ screen_width = self.winfo_screenwidth()
120
+ screen_height = self.winfo_screenheight()
121
+ win_width = 1920
122
+ win_height = 1080
123
+ if screen_width < win_width or screen_height < win_height:
124
+ win_width = screen_width * 0.9
125
+ win_height = screen_height * 0.9
126
+
127
+ # Calculate the x and y coordinates to center the window
128
+ x_coord = (screen_width // 2) - (win_width // 2)
129
+ y_coord = (screen_height // 2) - (win_height // 2)
130
+
131
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
119
132
 
120
133
  # configure grid layout (4x4)
121
134
  self.grid_columnconfigure(0, weight=1)
@@ -19,7 +19,21 @@ class BoundsEditorWindow(CTkInputDialog):
19
19
  **kwargs):
20
20
  super().__init__(*args, **kwargs)
21
21
 
22
- self.geometry("400x800")
22
+ screen_width = self.winfo_screenwidth()
23
+ screen_height = self.winfo_screenheight()
24
+ win_width = 400
25
+ win_height = 800
26
+ if screen_width < win_width:
27
+ win_width = screen_width * 0.9
28
+
29
+ if screen_height < win_height:
30
+ win_height = screen_height * 0.9
31
+
32
+ # Calculate the x and y coordinates to center the window
33
+ x_coord = (screen_width // 2) - (win_width // 2)
34
+ y_coord = (screen_height // 2) - (win_height // 2)
35
+
36
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
23
37
 
24
38
  self.step_index = step_index
25
39
  self.bound_index = bound_index
@@ -19,7 +19,21 @@ class CustomFunctionEditorWindow(CTkInputDialog):
19
19
  **kwargs):
20
20
  super().__init__(*args, **kwargs)
21
21
 
22
- self.geometry("400x800")
22
+ screen_width = self.winfo_screenwidth()
23
+ screen_height = self.winfo_screenheight()
24
+ win_width = 400
25
+ win_height = 800
26
+ if screen_width < win_width:
27
+ win_width = screen_width * 0.9
28
+
29
+ if screen_height < win_height:
30
+ win_height = screen_height * 0.9
31
+
32
+ # Calculate the x and y coordinates to center the window
33
+ x_coord = (screen_width // 2) - (win_width // 2)
34
+ y_coord = (screen_height // 2) - (win_height // 2)
35
+
36
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
23
37
 
24
38
  self.step_index = step_index
25
39
  self.function_index = function_index
@@ -18,7 +18,21 @@ class OverrideParameterWindow(CTkInputDialog):
18
18
  **kwargs):
19
19
  super().__init__(*args, **kwargs)
20
20
 
21
- self.geometry("400x800")
21
+ screen_width = self.winfo_screenwidth()
22
+ screen_height = self.winfo_screenheight()
23
+ win_width = 400
24
+ win_height = 800
25
+ if screen_width < win_width:
26
+ win_width = screen_width * 0.9
27
+
28
+ if screen_height < win_height:
29
+ win_height = screen_height * 0.9
30
+
31
+ # Calculate the x and y coordinates to center the window
32
+ x_coord = (screen_width // 2) - (win_width // 2)
33
+ y_coord = (screen_height // 2) - (win_height // 2)
34
+
35
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
22
36
 
23
37
  self.step_index = step_index
24
38
  self.option_manager = option_manager
@@ -19,7 +19,21 @@ class SamplingNameListWindow(CTkInputDialog):
19
19
  **kwargs):
20
20
  super().__init__(*args, **kwargs)
21
21
 
22
- self.geometry("400x800")
22
+ screen_width = self.winfo_screenwidth()
23
+ screen_height = self.winfo_screenheight()
24
+ win_width = 400
25
+ win_height = 800
26
+ if screen_width < win_width:
27
+ win_width = screen_width * 0.9
28
+
29
+ if screen_height < win_height:
30
+ win_height = screen_height * 0.9
31
+
32
+ # Calculate the x and y coordinates to center the window
33
+ x_coord = (screen_width // 2) - (win_width // 2)
34
+ y_coord = (screen_height // 2) - (win_height // 2)
35
+
36
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
23
37
 
24
38
  self.step_index = step_index
25
39
  self.bound_index = bound_index
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- VERSION = '0.2.118'
3
+ VERSION = '0.2.120'
4
4
  DESCRIPTION = 'GUI for MG-PSO'
5
5
  LONG_DESCRIPTION = open('../README.md').read()
6
6
 
File without changes