mg-pso-gui 0.2.98__py3-none-any.whl → 0.2.99__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.98
3
+ Version: 0.2.99
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -6,7 +6,7 @@ mgpsogui/gui/OptionManager.py,sha256=d-di4I9m9h0cPaKjnooTLf-QOqgIxYXbJma97EvP36I
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
9
- mgpsogui/gui/General/ParameterView.py,sha256=to57aODZOQXC52Pjcw_dYCRcf50WKj73SkLdb3i7wps,9493
9
+ mgpsogui/gui/General/ParameterView.py,sha256=vLTmBEliBnHcwDUYCrnOWQvR887OyujVT8Lm-Y08qCQ,10071
10
10
  mgpsogui/gui/General/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=8J2Aa3Zrh1q9x07zZ0Ap9PgwHjeSKOYyj6wlxx40udw,10985
12
12
  mgpsogui/gui/PlatformTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -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.98.dist-info/METADATA,sha256=ekBafcNKgLuq4c_qlN4Mwmx_V17NXcQOzXXS0teTJ0M,9455
77
- mg_pso_gui-0.2.98.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
78
- mg_pso_gui-0.2.98.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
79
- mg_pso_gui-0.2.98.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
80
- mg_pso_gui-0.2.98.dist-info/RECORD,,
76
+ mg_pso_gui-0.2.99.dist-info/METADATA,sha256=A2-cLJsvjJX-oVde3QyW3lqbcjo-ZTZ6PYBTg2kzvMo,9455
77
+ mg_pso_gui-0.2.99.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
78
+ mg_pso_gui-0.2.99.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
79
+ mg_pso_gui-0.2.99.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
80
+ mg_pso_gui-0.2.99.dist-info/RECORD,,
@@ -81,21 +81,32 @@ class ParameterView(CTkScrollableFrame):
81
81
  hour = sv()
82
82
  minute = sv()
83
83
  second = sv()
84
- date_time = om_text_var.get().split(" ")
85
- vv = date_time[0].split("-")
86
- ss = date_time[1].split(":")
87
- year.set(vv[0])
88
- month.set(vv[1])
89
- day.set(vv[2])
90
- hour.set(ss[0])
91
- minute.set(ss[1])
92
- second.set(ss[2])
84
+
85
+ year.set("2021")
86
+ month.set("01")
87
+ day.set("01")
88
+ hour.set("00")
89
+ minute.set("00")
90
+ second.set("00")
91
+
92
+ try:
93
+ date_time = om_text_var.get().split(" ")
94
+ vv = date_time[0].split("-")
95
+ ss = date_time[1].split(":")
96
+ year.set(vv[0])
97
+ month.set(vv[1])
98
+ day.set(vv[2])
99
+ hour.set(ss[0])
100
+ minute.set(ss[1])
101
+ second.set(ss[2])
102
+ except Exception as e:
103
+ pass
93
104
  year_options = [str(i) for i in range(1999, 2030)]
94
105
  month_options = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]
95
106
  day_options = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"]
96
107
  hour_options = [str(i) for i in range(0, 24)]
97
- minute_options = [str(i) for i in range(0, 60)]
98
- second_options = [str(i) for i in range(0, 60)]
108
+ minute_options = [f"{i:02}" for i in range(0, 60)]
109
+ second_options = [f"{i:02}" for i in range(0, 60)]
99
110
 
100
111
  update_date = lambda om_text_var=om_text_var, year=year, month=month, day=day: om_text_var.set(f"{year.get()}-{month.get()}-{day.get()} {hour.get()}:{minute.get()}:{second.get()}")
101
112
 
@@ -120,10 +131,17 @@ class ParameterView(CTkScrollableFrame):
120
131
  year = sv()
121
132
  month = sv()
122
133
  day = sv()
123
- vv = om_text_var.get().split("-")
124
- year.set(vv[0])
125
- month.set(vv[1])
126
- day.set(vv[2])
134
+ year.set("2021")
135
+ month.set("01")
136
+ day.set("01")
137
+
138
+ try:
139
+ vv = om_text_var.get().split("-")
140
+ year.set(vv[0])
141
+ month.set(vv[1])
142
+ day.set(vv[2])
143
+ except Exception as e:
144
+ pass
127
145
  year_options = [str(i) for i in range(1999, 2030)]
128
146
  month_options = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]
129
147
  day_options = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"]