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
|
|
@ -6,7 +6,7 @@ import pandas as pd
|
|||
import pytest
|
||||
|
||||
from tests import config as test_config
|
||||
from velofy import config
|
||||
from velofy import config as pkg_config
|
||||
from velofy.forecasts.methods import arima
|
||||
from velofy.forecasts.methods import ets
|
||||
from velofy.forecasts.methods import extrapolate_season
|
||||
|
|
@ -24,14 +24,14 @@ def forecast_interval():
|
|||
future_day.year,
|
||||
future_day.month,
|
||||
future_day.day,
|
||||
config.SERVICE_START,
|
||||
pkg_config.SERVICE_START,
|
||||
0,
|
||||
)
|
||||
end_of_day = dt.datetime(
|
||||
future_day.year,
|
||||
future_day.month,
|
||||
future_day.day,
|
||||
config.SERVICE_END,
|
||||
pkg_config.SERVICE_END,
|
||||
0,
|
||||
)
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ def forecast_interval():
|
|||
gen = (
|
||||
start_at
|
||||
for start_at in start_ats
|
||||
if config.SERVICE_START <= start_at.hour < config.SERVICE_END
|
||||
if pkg_config.SERVICE_START <= start_at.hour < pkg_config.SERVICE_END
|
||||
)
|
||||
|
||||
index = pd.Index(gen)
|
||||
|
|
|
|||
Loading…
Reference in a new issue