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 import timify
@ -57,7 +57,7 @@ def vertical_datetime_index():
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)
@ -113,7 +113,7 @@ def order_totals(good_pixel_id):
(pixel_id, start_at)
for pixel_id in pixel_ids
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
)
# Re-index `data` filling in `0`s where there is no demand.