mg-pso-gui 0.1.208__py3-none-any.whl → 0.1.210__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.208.dist-info → mg_pso_gui-0.1.210.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.1.208.dist-info → mg_pso_gui-0.1.210.dist-info}/RECORD +6 -6
- mgpsogui/util/GraphGenerator.py +74 -0
- {mg_pso_gui-0.1.208.dist-info → mg_pso_gui-0.1.210.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.1.208.dist-info → mg_pso_gui-0.1.210.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.1.208.dist-info → mg_pso_gui-0.1.210.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=6g_UfMMiy2c8-dP9lAvcMRa-wACvmC1u65DcwvL8z30,28600
|
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.210.dist-info/METADATA,sha256=L9cFP4nDIU7yyQgWvpSKIBhwQaFgwrxp4PRNKHCnhlY,9456
|
64
|
+
mg_pso_gui-0.1.210.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
65
|
+
mg_pso_gui-0.1.210.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
66
|
+
mg_pso_gui-0.1.210.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
67
|
+
mg_pso_gui-0.1.210.dist-info/RECORD,,
|
mgpsogui/util/GraphGenerator.py
CHANGED
@@ -9,6 +9,9 @@ import customtkinter
|
|
9
9
|
import traceback
|
10
10
|
import math
|
11
11
|
|
12
|
+
baseFigureWidth = 700
|
13
|
+
baseFigureHeight = 350
|
14
|
+
|
12
15
|
theme_background_color = {
|
13
16
|
"Dark": 'rgba(42, 42, 42, 0)',
|
14
17
|
"Light": 'rgba(255, 255, 255, 0)',
|
@@ -139,6 +142,12 @@ def best_cost_stacked(homepage, config, data, option_manager):
|
|
139
142
|
gridwidth=0.1
|
140
143
|
)
|
141
144
|
)
|
145
|
+
if (theme == "Publication"):
|
146
|
+
fig.update_layout(
|
147
|
+
font=dict(
|
148
|
+
size=16
|
149
|
+
)
|
150
|
+
)
|
142
151
|
|
143
152
|
info = option_manager.get_project_data()
|
144
153
|
folder = os.path.join(info['path'], info['name'])
|
@@ -148,6 +157,8 @@ def best_cost_stacked(homepage, config, data, option_manager):
|
|
148
157
|
|
149
158
|
fig.write_image(os.path.join(folder, "best_cost_stacked.png"), width=1280, height=720)
|
150
159
|
fig.write_html(os.path.join(folder, "best_cost_stacked.html"), include_plotlyjs='cdn', auto_open=False)
|
160
|
+
fig.write_json(os.path.join(folder, "best_cost_stacked.json"))
|
161
|
+
fig.write_image(os.path.join(folder, "best_cost_stacked.pdf"), engine="kaleido", width=baseFigureWidth, height=baseFigureHeight)
|
151
162
|
with open(os.path.join(folder, "best_cost_stacked.html"), "r") as f:
|
152
163
|
html = f.read()
|
153
164
|
html = html.replace("<body>", "<body bgcolor='#2a2a2a'>")
|
@@ -191,6 +202,12 @@ def table(homepage, config, dataframe, option_manager):
|
|
191
202
|
gridwidth=0.1
|
192
203
|
)
|
193
204
|
)
|
205
|
+
if (theme == "Publication"):
|
206
|
+
fig.update_layout(
|
207
|
+
font=dict(
|
208
|
+
size=16
|
209
|
+
)
|
210
|
+
)
|
194
211
|
|
195
212
|
info = option_manager.get_project_data()
|
196
213
|
folder = os.path.join(info['path'], info['name'])
|
@@ -200,6 +217,8 @@ def table(homepage, config, dataframe, option_manager):
|
|
200
217
|
|
201
218
|
fig.write_image(os.path.join(folder, "table.png"), width=1280, height=720)
|
202
219
|
fig.write_html(os.path.join(folder, "table.html"), include_plotlyjs='cdn', auto_open=False)
|
220
|
+
fig.write_json(os.path.join(folder, "table.json"))
|
221
|
+
fig.write_image(os.path.join(folder, "table.pdf"), engine="kaleido", width=baseFigureWidth, height=baseFigureHeight)
|
203
222
|
with open(os.path.join(folder, "table.html"), "r") as f:
|
204
223
|
html = f.read()
|
205
224
|
html = html.replace("<body>", "<body bgcolor='#2a2a2a'>")
|
@@ -275,6 +294,12 @@ def best_cost_by_round(homepage, config, data, option_manager):
|
|
275
294
|
gridwidth=0.1
|
276
295
|
)
|
277
296
|
)
|
297
|
+
if (theme == "Publication"):
|
298
|
+
fig.update_layout(
|
299
|
+
font=dict(
|
300
|
+
size=16
|
301
|
+
)
|
302
|
+
)
|
278
303
|
|
279
304
|
info = option_manager.get_project_data()
|
280
305
|
folder = os.path.join(info['path'], info['name'])
|
@@ -284,6 +309,8 @@ def best_cost_by_round(homepage, config, data, option_manager):
|
|
284
309
|
|
285
310
|
fig.write_image(os.path.join(folder, "best_cost_by_round.png"), width=1280, height=720)
|
286
311
|
fig.write_html(os.path.join(folder, "best_cost_by_round.html"), include_plotlyjs='cdn', auto_open=False)
|
312
|
+
fig.write_json(os.path.join(folder, "best_cost_by_round.json"))
|
313
|
+
fig.write_image(os.path.join(folder, "best_cost_by_round.pdf"), engine="kaleido", width=baseFigureWidth, height=baseFigureHeight)
|
287
314
|
with open(os.path.join(folder, "best_cost_by_round.html"), "r") as f:
|
288
315
|
html = f.read()
|
289
316
|
html = html.replace("<body>", "<body bgcolor='#2a2a2a'>")
|
@@ -342,6 +369,12 @@ def calibrated_params_by_round(homepage, config, list_of_objs, option_manager):
|
|
342
369
|
gridwidth=0.1
|
343
370
|
)
|
344
371
|
)
|
372
|
+
if (theme == "Publication"):
|
373
|
+
fig.update_layout(
|
374
|
+
font=dict(
|
375
|
+
size=16
|
376
|
+
)
|
377
|
+
)
|
345
378
|
|
346
379
|
info = option_manager.get_project_data()
|
347
380
|
folder = os.path.join(info['path'], info['name'])
|
@@ -351,6 +384,8 @@ def calibrated_params_by_round(homepage, config, list_of_objs, option_manager):
|
|
351
384
|
|
352
385
|
fig.write_image(os.path.join(folder, "calibrated_params_by_round.png"), width=1280, height=720)
|
353
386
|
fig.write_html(os.path.join(folder, "calibrated_params_by_round.html"), include_plotlyjs='cdn', auto_open=False)
|
387
|
+
fig.write_json(os.path.join(folder, "calibrated_params_by_round.json"))
|
388
|
+
fig.write_image(os.path.join(folder, "calibrated_params_by_round.pdf"), engine="kaleido", width=baseFigureWidth, height=baseFigureHeight)
|
354
389
|
with open(os.path.join(folder, "calibrated_params_by_round.html"), "r") as f:
|
355
390
|
html = f.read()
|
356
391
|
html = html.replace("<body>", "<body bgcolor='#2a2a2a'>")
|
@@ -416,6 +451,12 @@ def custom_csv(homepage, option_manager):
|
|
416
451
|
side='right'
|
417
452
|
)
|
418
453
|
)
|
454
|
+
if (theme == "Publication"):
|
455
|
+
fig.update_layout(
|
456
|
+
font=dict(
|
457
|
+
size=16
|
458
|
+
)
|
459
|
+
)
|
419
460
|
|
420
461
|
info = option_manager.get_project_data()
|
421
462
|
folder = os.path.join(info['path'], info['name'])
|
@@ -425,6 +466,8 @@ def custom_csv(homepage, option_manager):
|
|
425
466
|
|
426
467
|
fig.write_image(os.path.join(folder, "custom_csv.png"), width=1280, height=720)
|
427
468
|
fig.write_html(os.path.join(folder, "custom_csv.html"), include_plotlyjs='cdn', auto_open=False)
|
469
|
+
fig.write_json(os.path.join(folder, "custom_csv.json"))
|
470
|
+
fig.write_image(os.path.join(folder, "custom_csv.pdf"), engine="kaleido", width=baseFigureWidth, height=baseFigureHeight)
|
428
471
|
with open(os.path.join(folder, "custom_csv.html"), "r") as f:
|
429
472
|
html = f.read()
|
430
473
|
html = html.replace("<body>", "<body bgcolor='#2a2a2a'>")
|
@@ -499,6 +542,12 @@ def compare_csv(homepage, option_manager):
|
|
499
542
|
side='right'
|
500
543
|
)
|
501
544
|
)
|
545
|
+
if (theme == "Publication"):
|
546
|
+
fig.update_layout(
|
547
|
+
font=dict(
|
548
|
+
size=16
|
549
|
+
)
|
550
|
+
)
|
502
551
|
|
503
552
|
info = option_manager.get_project_data()
|
504
553
|
folder = os.path.join(info['path'], info['name'])
|
@@ -508,6 +557,8 @@ def compare_csv(homepage, option_manager):
|
|
508
557
|
|
509
558
|
fig.write_image(os.path.join(folder, "compare_csv.png"), width=1280, height=720)
|
510
559
|
fig.write_html(os.path.join(folder, "compare_csv.html"), include_plotlyjs='cdn', auto_open=False)
|
560
|
+
fig.write_json(os.path.join(folder, "compare_csv.json"))
|
561
|
+
fig.write_image(os.path.join(folder, "compare_csv.pdf"), engine="kaleido", width=baseFigureWidth, height=baseFigureHeight)
|
511
562
|
with open(os.path.join(folder, "compare_csv.html"), "r") as f:
|
512
563
|
html = f.read()
|
513
564
|
html = html.replace("<body>", "<body bgcolor='#2a2a2a'>")
|
@@ -584,6 +635,12 @@ def sampling_csv(homepage, option_manager):
|
|
584
635
|
side='right'
|
585
636
|
)
|
586
637
|
)
|
638
|
+
if (theme == "Publication"):
|
639
|
+
fig.update_layout(
|
640
|
+
font=dict(
|
641
|
+
size=16
|
642
|
+
)
|
643
|
+
)
|
587
644
|
|
588
645
|
info = option_manager.get_project_data()
|
589
646
|
folder = os.path.join(info['path'], info['name'])
|
@@ -593,6 +650,8 @@ def sampling_csv(homepage, option_manager):
|
|
593
650
|
|
594
651
|
fig.write_image(os.path.join(folder, "sampling_csv.png"), width=1280, height=720)
|
595
652
|
fig.write_html(os.path.join(folder, "sampling_csv.html"), include_plotlyjs='cdn', auto_open=False)
|
653
|
+
fig.write_json(os.path.join(folder, "sampling_csv.json"))
|
654
|
+
fig.write_image(os.path.join(folder, "sampling_csv.pdf"), engine="kaleido", width=baseFigureWidth, height=baseFigureHeight)
|
596
655
|
with open(os.path.join(folder, "sampling_csv.html"), "r") as f:
|
597
656
|
html = f.read()
|
598
657
|
html = html.replace("<body>", "<body bgcolor='#2a2a2a'>")
|
@@ -692,6 +751,13 @@ def matrix_editor(homepage, option_manager):
|
|
692
751
|
gridwidth=0.1
|
693
752
|
)
|
694
753
|
)
|
754
|
+
if (theme == "Publication"):
|
755
|
+
fig.update_layout(
|
756
|
+
font=dict(
|
757
|
+
size=16
|
758
|
+
)
|
759
|
+
)
|
760
|
+
|
695
761
|
all_figures.append(fig)
|
696
762
|
|
697
763
|
row = 1
|
@@ -732,12 +798,20 @@ def matrix_editor(homepage, option_manager):
|
|
732
798
|
paper_bgcolor=theme_background_color[theme],
|
733
799
|
plot_bgcolor=theme_plot_color[theme]
|
734
800
|
)
|
801
|
+
if (theme == "Publication"):
|
802
|
+
fig.update_layout(
|
803
|
+
font=dict(
|
804
|
+
size=16
|
805
|
+
)
|
806
|
+
)
|
735
807
|
|
736
808
|
if not os.path.exists(folder):
|
737
809
|
os.makedirs(folder)
|
738
810
|
|
739
811
|
fig.write_image(os.path.join(folder, "matrix_editor.png"), width=1280, height=720)
|
740
812
|
fig.write_html(os.path.join(folder, "matrix_editor.html"), include_plotlyjs='cdn', auto_open=False)
|
813
|
+
fig.write_json(os.path.join(folder, "matrix_editor.json"))
|
814
|
+
fig.write_image(os.path.join(folder, "matrix_editor.pdf"), engine="kaleido", width=baseFigureWidth, height=baseFigureHeight)
|
741
815
|
with open(os.path.join(folder, "matrix_editor.html"), "r") as f:
|
742
816
|
html = f.read()
|
743
817
|
html = html.replace("<body>", "<body bgcolor='#2a2a2a'>")
|
File without changes
|
File without changes
|
File without changes
|