mg-pso-gui 0.1.182__py3-none-any.whl → 0.1.183__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.182
3
+ Version: 0.1.183
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=T9jx8B7OBVfpSOojcR9GLiClBScryItnzvpo6-gG2_s,22792
5
- mgpsogui/gui/OptionManager.py,sha256=X-A_YCiBilcBuAmy3XbAVMAxuUIaFcsyh2fXaU5kiOM,13272
4
+ mgpsogui/gui/HomePage.py,sha256=S4vm9gtwoWjfbNmFSX5e-_l18ti0YIFulrH9a3v953s,22845
5
+ mgpsogui/gui/OptionManager.py,sha256=x3Q4sQW6KuXkDuGGebEVhfHwtz6BiTYmrs7gTXPMe5A,13264
6
6
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=q8x_tvVgSoyGINuQbivXRThF3gaSSfg8X_dsLSPv4F0,10492
8
8
  mgpsogui/gui/PlatformTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -59,8 +59,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
59
59
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
60
60
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
61
61
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
62
- mg_pso_gui-0.1.182.dist-info/METADATA,sha256=2RRdwFwHDEL--Vws2Ky5qLFH4G0nrtQtqvm9QOCeG64,9456
63
- mg_pso_gui-0.1.182.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
64
- mg_pso_gui-0.1.182.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
65
- mg_pso_gui-0.1.182.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
66
- mg_pso_gui-0.1.182.dist-info/RECORD,,
62
+ mg_pso_gui-0.1.183.dist-info/METADATA,sha256=AJ_gtaGz36sOLeLjaur55kzHdCMNSk3DrlLIBUlZOCU,9456
63
+ mg_pso_gui-0.1.183.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
64
+ mg_pso_gui-0.1.183.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
65
+ mg_pso_gui-0.1.183.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
66
+ mg_pso_gui-0.1.183.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -131,7 +131,7 @@ class App(customtkinter.CTk):
131
131
  # 4 is service URL
132
132
  self.service_label = customtkinter.CTkLabel(self.sidebar_frame, text="Service:", anchor="w")
133
133
  self.service_label.grid(row=0, column=3, padx=(80, 5), pady=header_padding_y)
134
- self.service_url = customtkinter.CTkEntry(self.sidebar_frame, textvariable=self.option_manager.get_arguments()['url'])
134
+ self.service_url = customtkinter.CTkEntry(self.sidebar_frame, textvariable=self.option_manager.get_arguments()['urls'][self.option_manager.service_modes[0]])
135
135
  self.service_url.grid(row=0, column=4, columnspan=1, padx=header_padding_x, pady=header_padding_y, sticky="nsew")
136
136
  refresh_image = customtkinter.CTkImage(Image.open(os.path.join("./images", "refresh.png")), size=(20, 20))
137
137
  self.refresh_button = customtkinter.CTkButton(self.sidebar_frame, text=None, width=30, image=refresh_image, command=self.load)
@@ -140,7 +140,7 @@ class App(customtkinter.CTk):
140
140
 
141
141
  self.algorithm_optionmenu = customtkinter.CTkOptionMenu(self.sidebar_frame, variable=self.option_manager.get_arguments()['mode'], values=self.option_manager.service_modes, width=50, command=self.refresh_step_view)
142
142
  self.algorithm_optionmenu.grid(row=0, column=6, padx=(5, 80), pady=header_padding_y)
143
- self.algorithm_optionmenu.set("Optimization: MG-PSO")
143
+ self.algorithm_optionmenu.set(self.option_manager.service_modes[0])
144
144
 
145
145
  self.scaling_label = customtkinter.CTkLabel(self.sidebar_frame, text="Scale:", anchor="w")
146
146
  self.scaling_label.grid(row=0, column=7, padx=header_padding_x, pady=header_padding_y)
@@ -37,12 +37,12 @@ class OptionManager():
37
37
  self.service_parameters = {}
38
38
 
39
39
  def add_arguments(self, arguments):
40
-
41
- if ("url" in arguments):
42
- self.arguments["url"].set(arguments["url"])
43
40
 
44
41
  if ("mode" in arguments):
45
42
  self.arguments["mode"].set(arguments["mode"])
43
+
44
+ if ("url" in arguments):
45
+ self.arguments["url"].set(arguments["url"])
46
46
 
47
47
  if ("files" in arguments):
48
48
  for file in arguments["files"]: