mg-pso-gui 0.2.110__py3-none-any.whl → 0.2.112__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.2.110
3
+ Version: 0.2.112
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=0US8RN8sVsVQAyB-4rgsbisjs9by6ofPnwIRbewmg6o,24387
5
- mgpsogui/gui/OptionManager.py,sha256=pOgGiv8rvCK5fQmSh86v5Scqleoag5pdpmP7Mv_Y4xk,22787
4
+ mgpsogui/gui/HomePage.py,sha256=K_uYDv-rr5GffTwKLqNhfQf78GRSXzXXLMtNyuy-fOc,24388
5
+ mgpsogui/gui/OptionManager.py,sha256=t0aXOeBo48qQ-P8OykpP2v_3KJoaJtUPSkYtacjloCc,22844
6
6
  mgpsogui/gui/OptionManager_backup.py,sha256=TCWfPnHL2foN5id47jsi267lamRG6yGU6y_M29eOOJk,18530
7
7
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  mgpsogui/gui/General/NoticeWindow.py,sha256=HcTtaYKK4b7HognnoAHXiIHZWAXI80QfR8HM2dTLTV8,1866
@@ -25,7 +25,7 @@ mgpsogui/gui/SetupTab/OverrideParameterWindow.py,sha256=UpZDxTaFxee0BeviUYXeiIlM
25
25
  mgpsogui/gui/SetupTab/SamplingListView.py,sha256=DhZBAhDcrqZn1XioCs1gTe_v-8W10C0UfPm0fLAbeXM,5260
26
26
  mgpsogui/gui/SetupTab/SamplingNameListWindow.py,sha256=QzVu8mSpFGy3mUlLonk94k5thDNdJzw2d3qmEq89RAQ,2866
27
27
  mgpsogui/gui/SetupTab/SetupTab.py,sha256=3V8LYvg5ulTll1hhguB_XpSoOR-w72vHh_Z3gw3nCxc,2758
28
- mgpsogui/gui/SetupTab/StepView.py,sha256=M_7gj3TqszMs0pVBnGmZZDr96NWZg5mfKyX1Ne1MIrc,9018
28
+ mgpsogui/gui/SetupTab/StepView.py,sha256=zogpFpGPRHrVZTADGGl6D5gHj0rfUmlTIJBxA50stbg,10399
29
29
  mgpsogui/gui/SetupTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  mgpsogui/gui/VisualizeTab/MatrixEditor.py,sha256=Gzyl2hRgjIfO5n0bCZZoXp_vOFvfsJPaGXDUMeRQg10,3171
31
31
  mgpsogui/gui/VisualizeTab/SideBar.py,sha256=jfGoyRdyeF2-YRvPhlr-5yd7VSHIYiskwf13HEoaYbA,23433
@@ -73,8 +73,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
73
73
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
74
74
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
75
75
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
76
- mg_pso_gui-0.2.110.dist-info/METADATA,sha256=-rn2x9HpNjEbulMtXCMLfDr_2B21qFgl0rQuEMZedg4,9542
77
- mg_pso_gui-0.2.110.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
78
- mg_pso_gui-0.2.110.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
79
- mg_pso_gui-0.2.110.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
80
- mg_pso_gui-0.2.110.dist-info/RECORD,,
76
+ mg_pso_gui-0.2.112.dist-info/METADATA,sha256=vHP4ZMZRoX9JaoNSm4ZHOepEDGnaU55AzrqxPU4_2Yo,9542
77
+ mg_pso_gui-0.2.112.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
78
+ mg_pso_gui-0.2.112.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
79
+ mg_pso_gui-0.2.112.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
80
+ mg_pso_gui-0.2.112.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -114,7 +114,7 @@ class App(customtkinter.CTk):
114
114
  self.testing = False
115
115
 
116
116
  # configure window
117
- self.title("COSU Manager (v0.2.107)")
117
+ self.title("COSU Manager (v0.2.112)")
118
118
  self.geometry(f"{1920}x{1080}")
119
119
 
120
120
  # configure grid layout (4x4)
@@ -127,7 +127,7 @@ class App(customtkinter.CTk):
127
127
  self.sidebar_frame = customtkinter.CTkFrame(self, width=140, corner_radius=0)
128
128
  self.sidebar_frame.grid(row=0, column=0, sticky="nsew")
129
129
  self.sidebar_frame.grid_columnconfigure(4, weight=1)
130
- self.logo_label = customtkinter.CTkLabel(self.sidebar_frame, text="COSU Manager (v0.2.107)", font=customtkinter.CTkFont(size=20, weight="bold"))
130
+ self.logo_label = customtkinter.CTkLabel(self.sidebar_frame, text="COSU Manager (v0.2.112)", font=customtkinter.CTkFont(size=20, weight="bold"))
131
131
  self.logo_label.grid(row=0, column=0, padx=(20, 10), pady=header_padding_y)
132
132
  self.save_button = customtkinter.CTkButton(self.sidebar_frame, text="Save", width=60, command=self.save_project)
133
133
  self.save_button.grid(row=0, column=1, padx=header_padding_x, pady=header_padding_y)
@@ -523,7 +523,7 @@ class App(customtkinter.CTk):
523
523
  message = f.read()
524
524
  NW(title="Error Occurred!", message=message)
525
525
  # Rename crash.txt to crash_read.txt
526
- os.rename(os.path.join(folder, 'crash.txt'), os.path.join(folder, 'crash_read.txt'))
526
+ os.replace(os.path.join(folder, 'crash.txt'), os.path.join(folder, 'crash_read.txt'))
527
527
  self.stop()
528
528
 
529
529
  while True:
@@ -36,6 +36,7 @@ class OptionManager():
36
36
  "sensitivity_negativeBestMetrics": [],
37
37
 
38
38
  "sensitivity_analysis_path": sv(),
39
+ "optimization_selected_group": sv(),
39
40
  "sampling_output_mode": sv(),
40
41
  "selected_graph": sv(),
41
42
  "graph_theme": sv(),
@@ -126,9 +126,35 @@ class StepView(CTkScrollableFrame):
126
126
  self.output_method.grid(row=0, column=2, padx=(10, 10), pady=header_padding_y)
127
127
 
128
128
  row += 1
129
+ elif (self.mode == "Optimization" and len(self.steps) > 5):
130
+
131
+ header_padding_x = (5, 5)
132
+ header_padding_y = (10, 10)
133
+
134
+ self.file_selector_frame = CTkFrame(self.containerFrame)
135
+ self.file_selector_frame.grid(row=0, column=0, sticky="nsew", columnspan=2)
136
+ self.logo_label = CTkLabel(self.file_selector_frame, text="Select Group:")
137
+ self.logo_label.grid(row=0, column=0, padx=(10, 10), pady=header_padding_y)
138
+
139
+ step_names = []
140
+ for step in self.steps:
141
+ step_names.append(step['name'].get())
142
+
143
+ selected_group = self.option_manager.get("optimization_selected_group").get()
144
+ if selected_group not in step_names:
145
+ self.option_manager.get("optimization_selected_group").set(step_names[0])
146
+
147
+ self.group_selector = CTkOptionMenu(self.file_selector_frame, values=step_names, width=50, variable=self.option_manager.get("optimization_selected_group"), command=self.refresh)
148
+ self.group_selector.grid(row=0, column=1, padx=(10, 10), pady=header_padding_y)
149
+
150
+ row += 1
129
151
 
130
152
 
131
153
  for step in self.steps:
154
+ if (self.mode == "Optimization" and len(self.steps) > 5):
155
+ if (step['name'].get() != self.option_manager.get("optimization_selected_group").get()):
156
+ index += 1
157
+ continue
132
158
 
133
159
  up_image = CTkImage(Image.open(os.path.join("./images", "up.png")), size=(20, 20))
134
160
  down_image = CTkImage(Image.open(os.path.join("./images", "down.png")), size=(20, 20))