Add OrderHistory.make_real_time_time_series()

- the method slices out a real-time time series from the data within
  an `OrderHistory` object
This commit is contained in:
Alexander Hess 2021-01-09 17:30:00 +01:00
commit 100fac659a
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
3 changed files with 257 additions and 3 deletions

View file

@ -8,6 +8,9 @@ from urban_meal_delivery import config
# The day on which most test cases take place.
YEAR, MONTH, DAY = 2016, 7, 1
# The hour when most test cases take place.
NOON = 12
# `START` and `END` constitute a 15-day time span.
# That implies a maximum `train_horizon` of `2` as that needs full 7-day weeks.
START = datetime.datetime(YEAR, MONTH, DAY, config.SERVICE_START, 0)