Import velofy.config as pkg_config everywhere

This commit is contained in:
Alexander Hess 2026-11-30 20:19:35 +01:00
commit cf2534f41e
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -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)