mg-pso-gui 0.1.131__py3-none-any.whl → 0.1.133__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.131
3
+ Version: 0.1.133
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,7 +1,7 @@
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=IRL_lA5J0QCX2LZvxcIt8A4ck9yYZym0mA9NPb9E-iE,23317
4
+ mgpsogui/gui/HomePage.py,sha256=ZX-RfsT0TaklnRmfKnqdhuPsYM-QpVv6ZrtkJh47_zg,23352
5
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
@@ -32,7 +32,7 @@ mgpsogui/gui/images/stop.png,sha256=JPuxXQerCGpLikcp7cAj3iLCOjULMYYZ2sZe0lArh68,
32
32
  mgpsogui/gui/images/test.png,sha256=MUnVpRK-isxhEHzx4Q6Yh0M6FRZD1qvgCHH2XmiSBbk,3642
33
33
  mgpsogui/gui/images/trash.png,sha256=j8cf0kWbJd-4Jp20lUVV1o1NSeQ4v1Ej4gfcIA3DVRQ,2958
34
34
  mgpsogui/gui/images/up.png,sha256=AQvFWCUqSQNaQ1E6LKZ9zNfSvW6t4mgy8uswdg9T2Hg,2457
35
- mgpsogui/util/GraphGenerator.py,sha256=HhUsFUFhCv3wTYV8CTqU0wo56Ph9c1DocPj25AVIAdI,15076
35
+ mgpsogui/util/GraphGenerator.py,sha256=yaVb_oxo5vR-UhrydiHPkRFdiklVNcgtnndE1BJ54hw,14987
36
36
  mgpsogui/util/PSORunner.py,sha256=YmzsZbbTH8axrwJYq7ypCiOeMW4w4dnoLquv1mSGKSU,5729
37
37
  mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  mgpsogui/util/debug.py,sha256=Swzny9_1S-CCONWGssj9iDoSpbwu5Vr4f95g_9L8bec,19759
@@ -58,8 +58,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
58
58
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
59
59
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
60
60
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
61
- mg_pso_gui-0.1.131.dist-info/METADATA,sha256=Cuco2yRQJdqdblA2CKpxzfA7-ofp27uS6w-qwnsO0gQ,9460
62
- mg_pso_gui-0.1.131.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
63
- mg_pso_gui-0.1.131.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
64
- mg_pso_gui-0.1.131.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
65
- mg_pso_gui-0.1.131.dist-info/RECORD,,
61
+ mg_pso_gui-0.1.133.dist-info/METADATA,sha256=xt7m13uQiOZu9o5KFV_iWdAjE0JhgVWTY3ny9ZfcwTM,9460
62
+ mg_pso_gui-0.1.133.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
63
+ mg_pso_gui-0.1.133.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
64
+ mg_pso_gui-0.1.133.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
65
+ mg_pso_gui-0.1.133.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -544,6 +544,7 @@ class App(customtkinter.CTk):
544
544
 
545
545
  data = hp.parse_pso_error(os.path.join(folder, 'error.txt'), len(self.option_manager.get_steps()))
546
546
  self.progress_data = data["data"]
547
+ self.footer_progress_bar.stop()
547
548
  self.footer_progress_bar.configure(mode="determinate")
548
549
  self.footer_progress_bar.set(data["percent"]/100)
549
550
  #self.progress_message_left.configure(text="Percent Complete: " + str(round(data["percent"])) + "%")
@@ -48,20 +48,14 @@ def generate_graphs(HomePage):
48
48
  print("Traceback:")
49
49
  traceback.print_exc()
50
50
 
51
- def best_cost_stacked(config, dataframe, option_manager):
51
+ def best_cost_stacked(config, data, option_manager):
52
52
  fig = go.Figure()
53
53
 
54
54
  total_steps = len(config)
55
55
 
56
56
  # Get unique values from the round_step column of the dataframe
57
- for iteration in dataframe['round_step'].unique():
58
- # Get best_cost and completed rounds rows for this iteration
59
- df = dataframe[dataframe['round_step'] == iteration]
60
-
61
- step_index = ((iteration) % total_steps)
62
- round_index = ((iteration) // total_steps)
63
-
64
- fig.add_trace(go.Scatter(x=df['completed_rounds'], y=df['best_cost'], name='Round ' + str(round_index + 1) + ' Group ' + str(step_index + 1)))
57
+ for round_step in data.keys():
58
+ fig.add_trace(go.Scatter(x=data[round_step]["percent"], y=data[round_step]["best_cost"], name=round_step))
65
59
 
66
60
  fig.update_layout(
67
61
  title="",
@@ -148,22 +142,28 @@ def table(config, dataframe, option_manager):
148
142
 
149
143
  return fig
150
144
 
151
- def best_cost_by_round(config, dataframe, option_manager):
145
+ def best_cost_by_round(config, data, option_manager):
152
146
  fig = go.Figure()
153
147
 
154
148
  total_steps = len(config)
155
149
 
156
150
  # Get unique values from the round_step column of the dataframe
157
- for iteration in dataframe['round_step'].unique():
151
+ for round_step in data.keys():
152
+ #for iteration in dataframe['round_step'].unique():
158
153
  # Get best_cost and completed rounds rows for this iteration
159
- df = dataframe[dataframe['round_step'] == iteration]
154
+
155
+ round_index = int(round_step.split(" -")[0].replace("Round: ", "")) - 1
156
+
157
+ #df = dataframe[dataframe['round_step'] == iteration]
160
158
 
161
- step_index = ((iteration) % total_steps)
162
- round_index = ((iteration) // total_steps)
159
+ #step_index = ((iteration) % total_steps)
160
+ #round_index = ((iteration) // total_steps)
161
+
162
+ fig.add_trace(go.Scatter(x=np.array(data['percent']) + (100 * round_index), y=data['best_cost'], name=round_step))
163
163
 
164
- fig.add_trace(go.Scatter(x=df['completed_rounds'] + (df['total_rounds'] * round_index), y=df['best_cost'], name='Group ' + str(step_index + 1)))
164
+ #fig.add_trace(go.Scatter(x=df['completed_rounds'] + (df['total_rounds'] * round_index), y=df['best_cost'], name='Group ' + str(step_index + 1)))
165
165
 
166
- xx = np.max(df['completed_rounds']) + (np.max(df['total_rounds']) * round_index)
166
+ xx = np.max(np.array(data['percent']) + (100 * round_index))
167
167
  fig.add_shape(
168
168
  type='line',
169
169
  x0=xx,