mg-pso-gui 0.1.118__py3-none-any.whl → 0.1.120__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.1.118
3
+ Version: 0.1.120
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,8 +1,8 @@
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=AqSNY9NDdIVcjNKtu4aAKbQiWPXWzHSH9tJNVq_zjsE,22562
5
- mgpsogui/gui/OptionManager.py,sha256=H5ofd7PA5f6dVfSghUhKdPiqLHNE0IVpPPzf93k7JD4,12527
4
+ mgpsogui/gui/HomePage.py,sha256=fsEYYsO-M6cbAOfAKHKNIpJfbB127ZVlWXfXFeRJN8o,22573
5
+ mgpsogui/gui/OptionManager.py,sha256=36_MlFd6nLt6xd6HHE2sHtL8oW7VBOZbCvJ8er-wWJ4,12544
6
6
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=KyIoHlMKD9nfQqHeGJwRDA4RCoe4UykjB2l6xMTKK_M,10486
8
8
  mgpsogui/gui/PlatformTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -13,10 +13,10 @@ mgpsogui/gui/SetupTab/BoundsList.py,sha256=L77UEaUJNiUE-ZsYIl44tWRb1zBfxaEQ-bAG1
13
13
  mgpsogui/gui/SetupTab/CalibrationParametersView.py,sha256=ppVBHG3nphku9-P6Z8az-HTpgk8vHxnj-A5m80BZTgA,2784
14
14
  mgpsogui/gui/SetupTab/FunctionsList.py,sha256=tUqW43VWpxFpdo9UHaPvFQ0CtCo9mFI3mri52ikntrE,4092
15
15
  mgpsogui/gui/SetupTab/ListParametersView.py,sha256=wYcDcaooYkw-y7XW6dJUwhTWxLuUUOK5tGUFVHBf3ck,7352
16
- mgpsogui/gui/SetupTab/OptimalParameterView.py,sha256=Z6XuGEVQYa2GlpDe_nxqcXjGoqSaaNkTGKYHzfnsyRg,2003
16
+ mgpsogui/gui/SetupTab/OptimalParameterView.py,sha256=lKmXqvtK8iPZf5ctWaTYypMwxJDiI9OW8FsfRQ8RzZo,1750
17
17
  mgpsogui/gui/SetupTab/SetupTab.py,sha256=8f_xqmMaD8grmSKFFUHm8zIGEDrSUzU_sNW6CdRLrrE,2436
18
18
  mgpsogui/gui/SetupTab/StaticParameterView.py,sha256=iEG-UpBBlAJabZo3MG768oLqOROjUPc23tKOSd47IUc,2739
19
- mgpsogui/gui/SetupTab/StepView.py,sha256=Okmmwpvyu6eu3LO0up8qyUuH8wuQK43kudv1TNNsj8E,5937
19
+ mgpsogui/gui/SetupTab/StepView.py,sha256=5kMkOiYt2wP_O2yCY1l0JcEKlip9rbMpWeytz1GhLhY,5998
20
20
  mgpsogui/gui/SetupTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  mgpsogui/gui/VisualizeTab/SideBar.py,sha256=TpTY4iFG5TzPMIjxfxREgAxLHvxma3Ihtq_EavWhZq8,13322
22
22
  mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=y3ZjLR78yXjHTcHMpB637ipBKxb1CCEM3qzG8OUJvpQ,3477
@@ -35,7 +35,7 @@ mgpsogui/gui/images/up.png,sha256=AQvFWCUqSQNaQ1E6LKZ9zNfSvW6t4mgy8uswdg9T2Hg,24
35
35
  mgpsogui/util/GraphGenerator.py,sha256=HhUsFUFhCv3wTYV8CTqU0wo56Ph9c1DocPj25AVIAdI,15076
36
36
  mgpsogui/util/PSORunner.py,sha256=ZXFpfL1U8PxRwMDtuHmXHdJclzounq0mCJ0YOVEBtm4,3934
37
37
  mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
- mgpsogui/util/debug.py,sha256=36oZ3wf3_zGQbdZLGwHJ1Kk8QArl9pjNqkIaz6IPt74,19742
38
+ mgpsogui/util/debug.py,sha256=Swzny9_1S-CCONWGssj9iDoSpbwu5Vr4f95g_9L8bec,19759
39
39
  mgpsogui/util/helpers.py,sha256=fCfVDaGholx16FVVqf2BhWs9KCevI7aFIve1w2W68EQ,769
40
40
  mgpsogui/util/sampler_test_driver.py,sha256=1iJTLVFZ_VCsuIdl3mXQBA1GNAH5jJO3z5h4E_bd5U8,3703
41
41
  mgpsogui/util/CTkToolTip/__init__.py,sha256=G1jxV55hGtGgwyC1sR-uUUdasDdh0XZgcI-aILgGYA0,225
@@ -49,8 +49,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
49
49
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
50
50
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
51
51
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
52
- mg_pso_gui-0.1.118.dist-info/METADATA,sha256=HecEFv_X6j2ia2lewYOJapHllNStBybzS3PAXrXhpN8,9460
53
- mg_pso_gui-0.1.118.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
54
- mg_pso_gui-0.1.118.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
55
- mg_pso_gui-0.1.118.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
56
- mg_pso_gui-0.1.118.dist-info/RECORD,,
52
+ mg_pso_gui-0.1.120.dist-info/METADATA,sha256=VCRyQq7JpVEA2VUbXCeYjgSCKeepT3-IzDINAMXAnM0,9460
53
+ mg_pso_gui-0.1.120.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
54
+ mg_pso_gui-0.1.120.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
55
+ mg_pso_gui-0.1.120.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
56
+ mg_pso_gui-0.1.120.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -128,10 +128,10 @@ class App(customtkinter.CTk):
128
128
  refresh_image = customtkinter.CTkImage(Image.open(os.path.join("./images", "refresh.png")), size=(20, 20))
129
129
  self.refresh_button = customtkinter.CTkButton(self.sidebar_frame, text=None, width=30, image=refresh_image, command=self.load)
130
130
  ctt(self.refresh_button, delay=0.1, alpha=0.95, message="Connect to Service")
131
- self.refresh_button.grid(row=0, column=5, padx=(5, 80), pady=header_padding_y)
131
+ self.refresh_button.grid(row=0, column=5, padx=header_padding_x, pady=header_padding_y)
132
132
 
133
133
  self.algorithm_optionmenu = customtkinter.CTkOptionMenu(self.sidebar_frame, variable=self.option_manager.get_arguments()['mode'], values=["Optimization: MG-PSO", "Sampling: Halton", "Sampling: Random"], width=50, command=self.refresh_step_view)
134
- self.algorithm_optionmenu.grid(row=0, column=6, padx=header_padding_x, pady=header_padding_y)
134
+ self.algorithm_optionmenu.grid(row=0, column=6, padx=(5, 80), pady=header_padding_y)
135
135
  self.algorithm_optionmenu.set("Optimization: MG-PSO")
136
136
 
137
137
  self.scaling_label = customtkinter.CTkLabel(self.sidebar_frame, text="Scale:", anchor="w")
@@ -306,7 +306,7 @@ class App(customtkinter.CTk):
306
306
  def make_request(self):
307
307
  service_url = self.service_url.get()
308
308
  try:
309
- response = requests.get(service_url)
309
+ response = requests.get(service_url, timeout=1)
310
310
 
311
311
  response_json = json.loads(response.text)
312
312
  status = response.status_code
@@ -20,7 +20,7 @@ class OptionManager():
20
20
  def clear(self):
21
21
  self.arguments['param'].clear()
22
22
  self.arguments['url'].set("")
23
- self.arguments['mode'].set("PSO")
23
+ self.arguments['mode'].set("Optimization: MG-PSO")
24
24
  self.arguments['files'] = {}
25
25
  self.arguments['calibration_parameters'].clear()
26
26
  self.steps = []
@@ -28,16 +28,11 @@ class OptimalParameterView(CTkScrollableFrame):
28
28
  self.containerFrame.grid_columnconfigure((0, 1), weight=1)
29
29
 
30
30
  self.mode = self.option_manager.get_arguments()['mode'].get()
31
-
32
- #CTkLabel(self.containerFrame, text="Name:").grid(row=row, column=0, columnspan=1, padx=5, pady=5, sticky="")
33
- #CTkLabel(self.containerFrame, text="Value:").grid(row=row, column=1, columnspan=1, padx=5, pady=5, sticky="")
34
- #row += 1
35
-
36
31
  self.steps = self.option_manager.get_steps()
37
32
 
38
33
  for step in self.steps:
39
34
 
40
- if self.mode != "Halton":
35
+ if self.mode != "Sampling: Halton":
41
36
  name = step['name'].get()
42
37
  CTkLabel(self.containerFrame, text=name).grid(row=row, column=0, columnspan=1, padx=5, pady=5, sticky="")
43
38
  row += 1
@@ -50,5 +45,5 @@ class OptimalParameterView(CTkScrollableFrame):
50
45
  bb.configure(textvariable=param['optimal_value'])
51
46
  row += 1
52
47
 
53
- if self.mode == "Halton":
48
+ if self.mode == "Sampling: Halton":
54
49
  break
@@ -86,7 +86,7 @@ class StepView(CTkScrollableFrame):
86
86
 
87
87
  #CTkLabel(self.containerFrame, text="Step:").grid(row=row, column=0, padx=10, pady=5, sticky="nsew")
88
88
 
89
- if (self.mode == "PSO"):
89
+ if (self.mode == "Optimization: MG-PSO"):
90
90
  button_container = CTkFrame(self.containerFrame, width=200)
91
91
  button_container.grid(row=row, column=1, sticky="nse", padx=(10, 10), pady=(10, 10))
92
92
  button_container.grid_rowconfigure(0, weight=1)
@@ -102,7 +102,7 @@ class StepView(CTkScrollableFrame):
102
102
 
103
103
  row += 1
104
104
 
105
- if step['open'] or self.mode == "Halton":
105
+ if step['open'] or self.mode == "Sampling: Halton":
106
106
  bounds = BoundsList.BoundsList(
107
107
  self.containerFrame, option_manager=self.option_manager, step_index=index)
108
108
  bounds.grid(row=row, column=0, padx=(10, 10),
@@ -120,11 +120,11 @@ class StepView(CTkScrollableFrame):
120
120
  row += 1
121
121
  index += 1
122
122
 
123
- if (self.mode != "PSO"):
123
+ if (self.mode != "Optimization: MG-PSO"):
124
124
  break
125
125
 
126
126
  # Create an "Add step button that is centered
127
127
 
128
- if (self.mode == "PSO" or len(self.steps) == 0):
128
+ if (self.mode == "Optimization: MG-PSO" or len(self.steps) == 0):
129
129
  CTkButton(self.containerFrame, text="Add Group", command=self.create_new_step).grid(
130
130
  row=row, columnspan=2, column=0, padx=(10, 10), pady=(10, 10), sticky="ew")
mgpsogui/util/debug.py CHANGED
@@ -136,7 +136,7 @@ args = {
136
136
  {"name": "project", "value": "SFIR3"},
137
137
  ],
138
138
  "url": "http://csip.engr.colostate.edu:8087/csip-oms/m/ages/0.3.0",
139
- "mode": "PSO",
139
+ "mode": "Optimization: MG-PSO",
140
140
  "files": {},
141
141
  }
142
142