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 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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue