Import velofy.config as pkg_config everywhere
This commit is contained in:
parent
de5e49b497
commit
cf2534f41e
1 changed files with 113 additions and 103 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import datetime as dt
|
||||
|
||||
from velofy import config
|
||||
from velofy import config as pkg_config
|
||||
|
||||
|
||||
# The day on which most test cases take place.
|
||||
|
|
@ -15,9 +15,9 @@ NOON = 12
|
|||
|
||||
# `START` and `END` constitute a 57-day time span, 8 full weeks plus 1 day.
|
||||
# That implies a maximum `train_horizon` of `8` as that needs full 7-day weeks.
|
||||
START = dt.datetime(YEAR, MONTH, DAY, config.SERVICE_START, 0)
|
||||
START = dt.datetime(YEAR, MONTH, DAY, pkg_config.SERVICE_START, 0)
|
||||
_end = START + dt.timedelta(days=56) # `56` as `START` is not included
|
||||
END = dt.datetime(_end.year, _end.month, _end.day, config.SERVICE_END, 0)
|
||||
END = dt.datetime(_end.year, _end.month, _end.day, pkg_config.SERVICE_END, 0)
|
||||
|
||||
# Default time steps (in minutes), for example, for `OrderHistory` objects.
|
||||
LONG_TIME_STEP = 60
|
||||
|
|
|
|||
Loading…
Reference in a new issue