@@ -96,8 +96,8 @@ def plot_estimates(
9696 epoch = epoch .replace ("UTC" , "" ).strip ()
9797 if "." not in epoch :
9898 epoch += ".0"
99- pd_ok_epochs += [epoch ]
100- time_col = pd .to_datetime (pd_ok_epochs )
99+ pd_ok_epochs += [datetime . fromisoformat ( str ( epoch ). replace ( "UTC" , "" ). strip ()) ]
100+ time_col = pd .Series (pd_ok_epochs )
101101 x_title = "Epoch {}" .format (time_col_name [- 3 :])
102102
103103 # Check that the requested covariance frame exists
@@ -336,8 +336,8 @@ def plot_covar(
336336 epoch = epoch .replace ("UTC" , "" ).strip ()
337337 if "." not in epoch :
338338 epoch += ".0"
339- pd_ok_epochs += [epoch ]
340- time_col = pd .to_datetime (pd_ok_epochs )
339+ pd_ok_epochs += [datetime . fromisoformat ( str ( epoch ). replace ( "UTC" , "" ). strip ()) ]
340+ time_col = pd .Series (pd_ok_epochs )
341341 x_title = "Epoch {}" .format (time_col_name [- 3 :])
342342
343343 # Check that the requested covariance frame exists
@@ -525,8 +525,8 @@ def overlay_measurements(
525525 epoch = epoch .replace ("UTC" , "" ).strip ()
526526 if "." not in epoch :
527527 epoch += ".0"
528- pd_ok_epochs += [epoch ]
529- time_col = pd .to_datetime (pd_ok_epochs )
528+ pd_ok_epochs += [datetime . fromisoformat ( str ( epoch ). replace ( "UTC" , "" ). strip ()) ]
529+ time_col = pd .Series (pd_ok_epochs )
530530 x_title = "Epoch {}" .format (time_col_name [- 3 :])
531531
532532 # Diff the epochs of the measurements to find when there is a start and end.
@@ -622,8 +622,8 @@ def plot_residuals(
622622 epoch = epoch .replace ("UTC" , "" ).strip ()
623623 if "." not in epoch :
624624 epoch += ".0"
625- pd_ok_epochs += [epoch ]
626- time_col = pd .to_datetime (pd_ok_epochs )
625+ pd_ok_epochs += [datetime . fromisoformat ( str ( epoch ). replace ( "UTC" , "" ). strip ()) ]
626+ time_col = pd .Series (pd_ok_epochs )
627627 x_title = "Epoch {}" .format (time_col_name [- 3 :])
628628
629629 plt_any = False
0 commit comments