mg-pso-gui 0.1.207__py3-none-any.whl → 0.1.208__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.
- {mg_pso_gui-0.1.207.dist-info → mg_pso_gui-0.1.208.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.1.207.dist-info → mg_pso_gui-0.1.208.dist-info}/RECORD +6 -6
- mgpsogui/util/GraphGenerator.py +54 -29
- {mg_pso_gui-0.1.207.dist-info → mg_pso_gui-0.1.208.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.1.207.dist-info → mg_pso_gui-0.1.208.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.1.207.dist-info → mg_pso_gui-0.1.208.dist-info}/top_level.txt +0 -0
@@ -34,7 +34,7 @@ mgpsogui/gui/images/stop.png,sha256=JPuxXQerCGpLikcp7cAj3iLCOjULMYYZ2sZe0lArh68,
|
|
34
34
|
mgpsogui/gui/images/test.png,sha256=MUnVpRK-isxhEHzx4Q6Yh0M6FRZD1qvgCHH2XmiSBbk,3642
|
35
35
|
mgpsogui/gui/images/trash.png,sha256=j8cf0kWbJd-4Jp20lUVV1o1NSeQ4v1Ej4gfcIA3DVRQ,2958
|
36
36
|
mgpsogui/gui/images/up.png,sha256=AQvFWCUqSQNaQ1E6LKZ9zNfSvW6t4mgy8uswdg9T2Hg,2457
|
37
|
-
mgpsogui/util/GraphGenerator.py,sha256=
|
37
|
+
mgpsogui/util/GraphGenerator.py,sha256=31JxeBlcwazCmchQomi8sTFP0AS2AhHurEN2QGSMZ6w,25798
|
38
38
|
mgpsogui/util/PSORunner.py,sha256=ELpRgEpUiLV4hW-A-y4yzfkFN1BXgH7LZ0qlwWBRz3s,11012
|
39
39
|
mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
40
40
|
mgpsogui/util/debug.py,sha256=Swzny9_1S-CCONWGssj9iDoSpbwu5Vr4f95g_9L8bec,19759
|
@@ -60,8 +60,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
|
|
60
60
|
mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
|
61
61
|
mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
|
62
62
|
mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
|
63
|
-
mg_pso_gui-0.1.
|
64
|
-
mg_pso_gui-0.1.
|
65
|
-
mg_pso_gui-0.1.
|
66
|
-
mg_pso_gui-0.1.
|
67
|
-
mg_pso_gui-0.1.
|
63
|
+
mg_pso_gui-0.1.208.dist-info/METADATA,sha256=FE-5cXZia8Hh1SqZVXzzkctyeZUD5ymmiZ9_b-Jw7mU,9456
|
64
|
+
mg_pso_gui-0.1.208.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
65
|
+
mg_pso_gui-0.1.208.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
66
|
+
mg_pso_gui-0.1.208.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
67
|
+
mg_pso_gui-0.1.208.dist-info/RECORD,,
|
mgpsogui/util/GraphGenerator.py
CHANGED
@@ -23,14 +23,14 @@ theme_background_color_html = {
|
|
23
23
|
|
24
24
|
theme_plot_color = {
|
25
25
|
"Dark": 'rgb(62, 62, 62)',
|
26
|
-
"Light": '
|
27
|
-
"Publication": '
|
26
|
+
"Light": 'rgba(245,245,255,255)',
|
27
|
+
"Publication": 'rgba(245,245,255,255)'
|
28
28
|
}
|
29
29
|
|
30
30
|
theme_grid_color = {
|
31
31
|
"Dark": 'rgb(72, 72, 72)',
|
32
|
-
"Light": 'rgb(
|
33
|
-
"Publication": 'rgb(
|
32
|
+
"Light": 'rgb(255, 255, 255)',
|
33
|
+
"Publication": 'rgb(255, 255, 255)'
|
34
34
|
}
|
35
35
|
|
36
36
|
theme_line_color = {
|
@@ -45,6 +45,20 @@ theme_font_color = {
|
|
45
45
|
"Publication": 'black'
|
46
46
|
}
|
47
47
|
|
48
|
+
theme_plot_color_pallet = [
|
49
|
+
"rgba(151, 209, 233, 255)",
|
50
|
+
"rgba(0, 120, 179, 255)",
|
51
|
+
"rgba(179, 223, 146, 255)",
|
52
|
+
"rgba(49, 169, 90, 255)",
|
53
|
+
"rgba(227, 136, 220, 255)",
|
54
|
+
"rgba(127, 0, 255, 255)",
|
55
|
+
"rgba(255, 128, 0, 255)",
|
56
|
+
"rgba(255, 99, 71, 255)",
|
57
|
+
"rgba(102, 205, 170, 255)",
|
58
|
+
"rgba(255, 215, 0, 255)",
|
59
|
+
"rgba(70, 130, 180, 255)"
|
60
|
+
]
|
61
|
+
|
48
62
|
def generate_graphs(HomePage):
|
49
63
|
|
50
64
|
try:
|
@@ -102,8 +116,10 @@ def best_cost_stacked(homepage, config, data, option_manager):
|
|
102
116
|
total_steps = len(config)
|
103
117
|
|
104
118
|
# Get unique values from the round_step column of the dataframe
|
119
|
+
pp = 0
|
105
120
|
for round_step in data.keys():
|
106
|
-
fig.add_trace(go.Scatter(x=data[round_step]["percent"], y=data[round_step]["best_cost"], name=round_step))
|
121
|
+
fig.add_trace(go.Scatter(x=data[round_step]["percent"], y=data[round_step]["best_cost"], name=round_step, marker_color=theme_plot_color_pallet[pp]))
|
122
|
+
pp += 1
|
107
123
|
|
108
124
|
fig.update_layout(
|
109
125
|
title="",
|
@@ -199,6 +215,7 @@ def best_cost_by_round(homepage, config, data, option_manager):
|
|
199
215
|
|
200
216
|
total_steps = len(config)
|
201
217
|
|
218
|
+
pp = 0
|
202
219
|
# Get unique values from the round_step column of the dataframe
|
203
220
|
for round_step in data.keys():
|
204
221
|
#for iteration in dataframe['round_step'].unique():
|
@@ -211,8 +228,9 @@ def best_cost_by_round(homepage, config, data, option_manager):
|
|
211
228
|
#step_index = ((iteration) % total_steps)
|
212
229
|
#round_index = ((iteration) // total_steps)
|
213
230
|
|
214
|
-
fig.add_trace(go.Scatter(x=np.array(data[round_step]['percent']) + (100 * round_index), y=data[round_step]['best_cost'], name=round_step))
|
215
|
-
|
231
|
+
fig.add_trace(go.Scatter(x=np.array(data[round_step]['percent']) + (100 * round_index), y=data[round_step]['best_cost'], name=round_step, marker_color=theme_plot_color_pallet[pp]))
|
232
|
+
pp += 1
|
233
|
+
|
216
234
|
#fig.add_trace(go.Scatter(x=df['completed_rounds'] + (df['total_rounds'] * round_index), y=df['best_cost'], name='Group ' + str(step_index + 1)))
|
217
235
|
|
218
236
|
|
@@ -299,12 +317,14 @@ def calibrated_params_by_round(homepage, config, list_of_objs, option_manager):
|
|
299
317
|
round += 1
|
300
318
|
|
301
319
|
# Get unique values from the round_step column of the dataframe
|
320
|
+
pp = 0
|
302
321
|
for key in datalines.keys():
|
303
322
|
# Get best_cost and completed rounds rows for this iteration
|
304
323
|
if key == 'step' or key == 'round':
|
305
324
|
continue
|
306
325
|
|
307
|
-
fig.add_trace(go.Scatter(x=datalines['round'], y=datalines[key], name=key))
|
326
|
+
fig.add_trace(go.Scatter(x=datalines['round'], y=datalines[key], name=key, marker_color=theme_plot_color_pallet[pp]))
|
327
|
+
pp += 1
|
308
328
|
|
309
329
|
fig.update_layout(
|
310
330
|
title="",
|
@@ -370,8 +390,8 @@ def custom_csv(homepage, option_manager):
|
|
370
390
|
if "Unit" in homepage.csv_data["data_attributes"]:
|
371
391
|
yy2_unit = homepage.csv_data["data_attributes"]["Unit"][val2]
|
372
392
|
|
373
|
-
fig.add_trace(go.Scatter(x=xx, y=yy, name=val))
|
374
|
-
fig.add_trace(go.Scatter(x=xx, y=yy2, name=val2, yaxis='y2'))
|
393
|
+
fig.add_trace(go.Scatter(x=xx, y=yy, name=val, marker_color=theme_plot_color_pallet[1]))
|
394
|
+
fig.add_trace(go.Scatter(x=xx, y=yy2, name=val2, yaxis='y2', marker_color=theme_plot_color_pallet[3]))
|
375
395
|
|
376
396
|
fig.update_layout(
|
377
397
|
title="",
|
@@ -453,8 +473,8 @@ def compare_csv(homepage, option_manager):
|
|
453
473
|
if "Unit" in homepage.csv_data["data_attributes"]:
|
454
474
|
yy2_unit = homepage.csv_data["data_attributes"]["Unit"][val2]
|
455
475
|
|
456
|
-
fig.add_trace(go.Scatter(x=xx, y=yy, name=val))
|
457
|
-
fig.add_trace(go.Scatter(x=xx2, y=yy2, name=val2, yaxis='y2'))
|
476
|
+
fig.add_trace(go.Scatter(x=xx, y=yy, name=val, marker_color=theme_plot_color_pallet[1]))
|
477
|
+
fig.add_trace(go.Scatter(x=xx2, y=yy2, name=val2, yaxis='y2', marker_color=theme_plot_color_pallet[3]))
|
458
478
|
|
459
479
|
fig.update_layout(
|
460
480
|
title="",
|
@@ -526,20 +546,20 @@ def sampling_csv(homepage, option_manager):
|
|
526
546
|
yy2_unit = ""
|
527
547
|
|
528
548
|
if (style == "Scatter"):
|
529
|
-
fig.add_trace(go.Scatter(x=xx, y=yy, name=val, mode='markers'))
|
530
|
-
fig.add_trace(go.Scatter(x=xx, y=yy2, name=val2, yaxis='y2', mode='markers'))
|
549
|
+
fig.add_trace(go.Scatter(x=xx, y=yy, name=val, mode='markers', marker_color=theme_plot_color_pallet[1]))
|
550
|
+
fig.add_trace(go.Scatter(x=xx, y=yy2, name=val2, yaxis='y2', mode='markers', marker_color=theme_plot_color_pallet[3]))
|
531
551
|
elif (style == "Bars"):
|
532
|
-
fig.add_trace(go.Bar(x=xx, y=yy, name=val))
|
533
|
-
fig.add_trace(go.Bar(x=xx, y=yy2, name=val2, yaxis='y2'))
|
552
|
+
fig.add_trace(go.Bar(x=xx, y=yy, name=val, marker_color=theme_plot_color_pallet[1]))
|
553
|
+
fig.add_trace(go.Bar(x=xx, y=yy2, name=val2, yaxis='y2', marker_color=theme_plot_color_pallet[3]))
|
534
554
|
elif (style == "Lines"):
|
535
|
-
fig.add_trace(go.Scatter(x=xx, y=yy, name=val))
|
536
|
-
fig.add_trace(go.Scatter(x=xx, y=yy2, name=val2, yaxis='y2'))
|
555
|
+
fig.add_trace(go.Scatter(x=xx, y=yy, name=val, marker_color=theme_plot_color_pallet[1]))
|
556
|
+
fig.add_trace(go.Scatter(x=xx, y=yy2, name=val2, yaxis='y2', marker_color=theme_plot_color_pallet[3]))
|
537
557
|
elif (style == "Area"):
|
538
|
-
fig.add_trace(go.Scatter(x=xx, y=yy, name=val, fill='tozeroy'))
|
539
|
-
fig.add_trace(go.Scatter(x=xx, y=yy2, name=val2, yaxis='y2', fill='tozeroy'))
|
558
|
+
fig.add_trace(go.Scatter(x=xx, y=yy, name=val, fill='tozeroy', marker_color=theme_plot_color_pallet[1]))
|
559
|
+
fig.add_trace(go.Scatter(x=xx, y=yy2, name=val2, yaxis='y2', fill='tozeroy', marker_color=theme_plot_color_pallet[3]))
|
540
560
|
elif (style == "Box"):
|
541
|
-
fig.add_trace(go.Box(x=xx, y=yy, name=val))
|
542
|
-
fig.add_trace(go.Box(x=xx, y=yy2, name=val2, yaxis='y2'))
|
561
|
+
fig.add_trace(go.Box(x=xx, y=yy, name=val, marker_color=theme_plot_color_pallet[1]))
|
562
|
+
fig.add_trace(go.Box(x=xx, y=yy2, name=val2, yaxis='y2', marker_color=theme_plot_color_pallet[3]))
|
543
563
|
|
544
564
|
fig.update_layout(
|
545
565
|
title="",
|
@@ -613,11 +633,14 @@ def matrix_editor(homepage, option_manager):
|
|
613
633
|
figures_per_row = 3
|
614
634
|
elif (total_figures == 7 or total_figures == 8):
|
615
635
|
figures_per_row = 4
|
616
|
-
elif (total_figures == 9
|
617
|
-
figures_per_row =
|
636
|
+
elif (total_figures == 9):
|
637
|
+
figures_per_row = 3
|
638
|
+
else:
|
639
|
+
figures_per_row = 4
|
618
640
|
|
619
641
|
fig_combined = make_subplots(rows=(math.ceil(total_figures / figures_per_row)), cols=figures_per_row, shared_xaxes=False, shared_yaxes=False)
|
620
642
|
|
643
|
+
pp = 0
|
621
644
|
for parameter in figure_parameters:
|
622
645
|
name = parameter['name'].get()
|
623
646
|
|
@@ -639,15 +662,17 @@ def matrix_editor(homepage, option_manager):
|
|
639
662
|
yy_unit = ""
|
640
663
|
|
641
664
|
if (style == "Scatter"):
|
642
|
-
fig.add_trace(go.Scatter(x=yy, y=xx, name=val, mode='markers'))
|
665
|
+
fig.add_trace(go.Scatter(x=yy, y=xx, name=val, mode='markers', marker_color=theme_plot_color_pallet[pp]))
|
643
666
|
elif (style == "Bars"):
|
644
|
-
fig.add_trace(go.Bar(x=yy, y=xx, name=val))
|
667
|
+
fig.add_trace(go.Bar(x=yy, y=xx, name=val, marker_color=theme_plot_color_pallet[pp]))
|
645
668
|
elif (style == "Lines"):
|
646
|
-
fig.add_trace(go.Scatter(x=yy, y=xx, name=val))
|
669
|
+
fig.add_trace(go.Scatter(x=yy, y=xx, name=val, marker_color=theme_plot_color_pallet[pp]))
|
647
670
|
elif (style == "Area"):
|
648
|
-
fig.add_trace(go.Scatter(x=yy, y=xx, name=val, fill='tozeroy'))
|
671
|
+
fig.add_trace(go.Scatter(x=yy, y=xx, name=val, fill='tozeroy', marker_color=theme_plot_color_pallet[pp]))
|
649
672
|
elif (style == "Box"):
|
650
|
-
fig.add_trace(go.Box(x=yy, y=xx, name=val))
|
673
|
+
fig.add_trace(go.Box(x=yy, y=xx, name=val, marker_color=theme_plot_color_pallet[pp]))
|
674
|
+
|
675
|
+
pp += 1
|
651
676
|
|
652
677
|
fig.update_layout(
|
653
678
|
title="",
|
File without changes
|
File without changes
|
File without changes
|