mg-pso-gui 0.1.54__py3-none-any.whl → 0.1.57__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.54
3
+ Version: 0.1.57
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -31,7 +31,7 @@ mgpsogui/gui/images/stop.png,sha256=JPuxXQerCGpLikcp7cAj3iLCOjULMYYZ2sZe0lArh68,
31
31
  mgpsogui/gui/images/test.png,sha256=MUnVpRK-isxhEHzx4Q6Yh0M6FRZD1qvgCHH2XmiSBbk,3642
32
32
  mgpsogui/gui/images/trash.png,sha256=j8cf0kWbJd-4Jp20lUVV1o1NSeQ4v1Ej4gfcIA3DVRQ,2958
33
33
  mgpsogui/gui/images/up.png,sha256=AQvFWCUqSQNaQ1E6LKZ9zNfSvW6t4mgy8uswdg9T2Hg,2457
34
- mgpsogui/util/GraphGenerator.py,sha256=tnpscm2pEE-ZK7fkfTNT-msKZ7AMzZ6ee7ZUVcmVeJI,14379
34
+ mgpsogui/util/GraphGenerator.py,sha256=024tgb7Yk1Hy64lUbYX0jz437ghrHmCiivKGteXcwKg,15012
35
35
  mgpsogui/util/PSORunner.py,sha256=wfkrZLysgSS_5BrdFEm8U-0S7DHYpxmHPau_Ec5W8ak,4510
36
36
  mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  mgpsogui/util/CTkToolTip/__init__.py,sha256=G1jxV55hGtGgwyC1sR-uUUdasDdh0XZgcI-aILgGYA0,225
@@ -45,8 +45,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
45
45
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
46
46
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
47
47
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
48
- mg_pso_gui-0.1.54.dist-info/METADATA,sha256=Ug1j1UdaEy0rWzjvanoTtpRIsW1JPOE_lsOve3sv8QU,9458
49
- mg_pso_gui-0.1.54.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
50
- mg_pso_gui-0.1.54.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
51
- mg_pso_gui-0.1.54.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
52
- mg_pso_gui-0.1.54.dist-info/RECORD,,
48
+ mg_pso_gui-0.1.57.dist-info/METADATA,sha256=Gpz6vlzpYBV0yVkgof4VzFNBl4MnHAxJwT8LXhfLMYM,9458
49
+ mg_pso_gui-0.1.57.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
50
+ mg_pso_gui-0.1.57.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
51
+ mg_pso_gui-0.1.57.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
52
+ mg_pso_gui-0.1.57.dist-info/RECORD,,
@@ -289,18 +289,23 @@ def custom_csv(homepage, option_manager):
289
289
  val = homepage.csv_y1_selector.get()
290
290
  val2 = homepage.csv_y2_selector.get()
291
291
 
292
+ data_start_index = 2
293
+
292
294
  xx = None
293
295
  if x == "time":
294
- xx = pd.to_datetime(data["time"], format='%Y-%m-%d', errors='coerce').iloc[2:]
296
+ xx = pd.to_datetime(data["time"], format='%Y-%m-%d', errors='coerce').iloc[data_start_index:]
297
+ elif x == "date":
298
+ data_start_index = 5
299
+ xx = pd.to_datetime(data["date"], format='%d-%m-%Y', errors='coerce').iloc[data_start_index:]
295
300
  else:
296
- xx = pd.to_numeric(data[x], errors="coerce").iloc[2:]
301
+ xx = pd.to_numeric(data[x], errors="coerce").iloc[data_start_index:]
297
302
 
298
- yy = pd.to_numeric(data[val], errors="coerce").iloc[2:]
303
+ yy = pd.to_numeric(data[val], errors="coerce").iloc[data_start_index:]
299
304
 
300
305
  #yy_unit = "N/A"
301
306
  yy_unit = data[val].iloc[1]
302
307
 
303
- yy2 = pd.to_numeric(data[val2], errors="coerce").iloc[2:]
308
+ yy2 = pd.to_numeric(data[val2], errors="coerce").iloc[data_start_index:]
304
309
 
305
310
  #yy2_unit = "N/A"
306
311
  yy2_unit = data[val2].iloc[1]
@@ -358,26 +363,33 @@ def compare_csv(homepage, option_manager):
358
363
  val = homepage.csv_y1_selector.get()
359
364
  val2 = homepage.csv_y2_selector.get()
360
365
 
366
+ data_start_index = 2
367
+ data_start_index2 = 2
368
+
361
369
  xx = None
362
370
  if x == "time":
363
- xx = pd.to_datetime(data["time"], format='%Y-%m-%d', errors='coerce').iloc[2:]
371
+ xx = pd.to_datetime(data["time"], format='%Y-%m-%d', errors='coerce').iloc[data_start_index:]
372
+ elif x == "date":
373
+ data_start_index = 5
374
+ xx = pd.to_datetime(data["date"], format='%d-%m-%Y', errors='coerce').iloc[data_start_index:]
364
375
  else:
365
- xx = pd.to_numeric(data[x], errors="coerce").iloc[2:]
376
+ xx = pd.to_numeric(data[x], errors="coerce").iloc[data_start_index:]
366
377
 
367
- yy = pd.to_numeric(data[val], errors="coerce").iloc[2:]
378
+ yy = pd.to_numeric(data[val], errors="coerce").iloc[data_start_index:]
368
379
 
369
380
  xx2 = None
370
381
  if x == "time":
371
- xx2 = pd.to_datetime(data2["time"], format='%Y-%m-%d', errors='coerce').iloc[2:]
382
+ xx2 = pd.to_datetime(data2["time"], format='%Y-%m-%d', errors='coerce').iloc[data_start_index2:]
383
+ elif x == "date":
384
+ data_start_index2 = 5
385
+ xx2 = pd.to_datetime(data2["date"], format='%d-%m-%Y', errors='coerce').iloc[data_start_index2:]
372
386
  else:
373
- xx2 = pd.to_numeric(data2[x], errors="coerce").iloc[2:]
374
-
375
- yy = pd.to_numeric(data[val], errors="coerce").iloc[2:]
387
+ xx2 = pd.to_numeric(data2[x], errors="coerce").iloc[data_start_index2:]
376
388
 
377
389
  #yy_unit = "N/A"
378
390
  yy_unit = data[val].iloc[1]
379
391
 
380
- yy2 = pd.to_numeric(data2[val2], errors="coerce").iloc[2:]
392
+ yy2 = pd.to_numeric(data2[val2], errors="coerce").iloc[data_start_index2:]
381
393
 
382
394
  #yy2_unit = "N/A"
383
395
  yy2_unit = data2[val2].iloc[1]