Refactored
This commit is contained in:
+1
-1
@@ -250,7 +250,7 @@ if __name__ == '__main__':
|
||||
# define observation interval
|
||||
dt_start = datetime(settings.sel_years[0], settings.sel_month[0], settings.sel_days[0], 0, 0, 0)
|
||||
dt_stop = datetime(settings.sel_years[1], settings.sel_month[1], settings.sel_days[1], 23, 59, 59)
|
||||
td_step = timedelta(seconds=5*60)
|
||||
td_step = timedelta(seconds=settings.t_interval_s)
|
||||
|
||||
# resample values to equidistant time interval
|
||||
t_odo, v_odo = resample(ep_odo, dt_start, dt_stop, td_step)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# Settings for eval_record
|
||||
import time
|
||||
from datetime import timedelta
|
||||
|
||||
BASE = "/media/jens/cifs/jens@moon/projects/we_collect/results"
|
||||
VIN = 'WVWZZZE1ZMP010760'
|
||||
@@ -8,7 +9,8 @@ USER = 'alex'
|
||||
# Default show data of today
|
||||
sel_years = (2024, time.gmtime().tm_year)
|
||||
sel_month = (10, time.gmtime().tm_mon)
|
||||
sel_days = (15, time.gmtime().tm_mday)
|
||||
sel_days = (28, time.gmtime().tm_mday)
|
||||
t_interval_s = 5 * 60
|
||||
|
||||
eps = {
|
||||
"odo":
|
||||
|
||||
Reference in New Issue
Block a user