mg-pso-gui 0.1.205__py3-none-any.whl → 0.1.207__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.205
3
+ Version: 0.1.207
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -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=lIVhG2G8T8vEws8RJD6kU9c2qaIaZpEBwjrwxEjp7KM,24375
37
+ mgpsogui/util/GraphGenerator.py,sha256=yv66Hz9BIZsg_tRQDHcUAFBurOuc4tWpjwVWDsMiHMg,24380
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.205.dist-info/METADATA,sha256=tqGJn1XWRwA32FSi-8GhC-mG4cjWl-EXc799-LgE2E4,9456
64
- mg_pso_gui-0.1.205.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
65
- mg_pso_gui-0.1.205.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
66
- mg_pso_gui-0.1.205.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
67
- mg_pso_gui-0.1.205.dist-info/RECORD,,
63
+ mg_pso_gui-0.1.207.dist-info/METADATA,sha256=PemyAcGXj9BwATFdgVpjAF5tqWSb0DBM_PEAyQrgcuY,9456
64
+ mg_pso_gui-0.1.207.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
65
+ mg_pso_gui-0.1.207.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
66
+ mg_pso_gui-0.1.207.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
67
+ mg_pso_gui-0.1.207.dist-info/RECORD,,
@@ -7,6 +7,7 @@ import os
7
7
  from PIL import Image, ImageTk
8
8
  import customtkinter
9
9
  import traceback
10
+ import math
10
11
 
11
12
  theme_background_color = {
12
13
  "Dark": 'rgba(42, 42, 42, 0)',
@@ -615,7 +616,7 @@ def matrix_editor(homepage, option_manager):
615
616
  elif (total_figures == 9 or total_figures == 10):
616
617
  figures_per_row = 5
617
618
 
618
- fig_combined = make_subplots(rows=(total_figures // figures_per_row) + 1, cols=figures_per_row, shared_xaxes=False, shared_yaxes=False)
619
+ fig_combined = make_subplots(rows=(math.ceil(total_figures / figures_per_row)), cols=figures_per_row, shared_xaxes=False, shared_yaxes=False)
619
620
 
620
621
  for parameter in figure_parameters:
621
622
  name = parameter['name'].get()
@@ -627,32 +628,31 @@ def matrix_editor(homepage, option_manager):
627
628
  val = parameter['value'].get()
628
629
 
629
630
  xx = None
630
- if x == "time":
631
- xx = pd.to_datetime(data["time"], format='%Y-%m-%d', errors='coerce')
632
- elif x == "date":
633
- xx = pd.to_datetime(data["date"], format='%d-%m-%Y', errors='coerce')
634
- else:
635
- xx = pd.to_numeric(data[x], errors="coerce")
636
-
631
+ #if x == "time":
632
+ # xx = pd.to_datetime(data["time"], format='%Y-%m-%d', errors='coerce')
633
+ #elif x == "date":
634
+ # xx = pd.to_datetime(data["date"], format='%d-%m-%Y', errors='coerce')
635
+ #else:
636
+ xx = pd.to_numeric(data[x], errors="coerce")
637
637
  yy = pd.to_numeric(data[val], errors="coerce")
638
638
 
639
639
  yy_unit = ""
640
640
 
641
641
  if (style == "Scatter"):
642
- fig.add_trace(go.Scatter(x=xx, y=yy, name=val, mode='markers'))
642
+ fig.add_trace(go.Scatter(x=yy, y=xx, name=val, mode='markers'))
643
643
  elif (style == "Bars"):
644
- fig.add_trace(go.Bar(x=xx, y=yy, name=val))
644
+ fig.add_trace(go.Bar(x=yy, y=xx, name=val))
645
645
  elif (style == "Lines"):
646
- fig.add_trace(go.Scatter(x=xx, y=yy, name=val))
646
+ fig.add_trace(go.Scatter(x=yy, y=xx, name=val))
647
647
  elif (style == "Area"):
648
- fig.add_trace(go.Scatter(x=xx, y=yy, name=val, fill='tozeroy'))
648
+ fig.add_trace(go.Scatter(x=yy, y=xx, name=val, fill='tozeroy'))
649
649
  elif (style == "Box"):
650
- fig.add_trace(go.Box(x=xx, y=yy, name=val))
650
+ fig.add_trace(go.Box(x=yy, y=xx, name=val))
651
651
 
652
652
  fig.update_layout(
653
653
  title="",
654
- xaxis_title=x,
655
- yaxis_title=val,
654
+ xaxis_title=val,
655
+ yaxis_title=x,
656
656
  font=dict(color=theme_font_color[theme]),
657
657
  paper_bgcolor=theme_background_color[theme],
658
658
  plot_bgcolor=theme_plot_color[theme],
@@ -661,7 +661,7 @@ def matrix_editor(homepage, option_manager):
661
661
  gridwidth=1
662
662
  ),
663
663
  yaxis=dict(
664
- title=val,
664
+ title=x,
665
665
  autorange=True,
666
666
  gridcolor=theme_grid_color[theme],
667
667
  gridwidth=0.1