Use double quotes

This commit is contained in:
Alexander Hess 2026-11-28 03:08:55 +01:00
commit ea8f1a13e3
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -21,11 +21,11 @@ def horizontal_datetime_index():
gen = (
start_at
for start_at in pd.date_range(first_start_at, test_config.END, freq='D')
for start_at in pd.date_range(first_start_at, test_config.END, freq="D")
)
index = pd.Index(gen)
index.name = 'start_at'
index.name = "start_at"
# Sanity check.
# `+1` as both the `START` and `END` day are included.
@ -38,7 +38,7 @@ def horizontal_datetime_index():
@pytest.fixture
def horizontal_no_demand(horizontal_datetime_index):
"""A horizontal time series with order totals: no demand."""
return pd.Series(0, index=horizontal_datetime_index, name='n_orders')
return pd.Series(0, index=horizontal_datetime_index, name="n_orders")
@pytest.fixture
@ -52,7 +52,7 @@ def vertical_datetime_index():
start_ats = pd.date_range(
test_config.START,
test_config.END,
freq=f'{test_config.LONG_TIME_STEP}min',
freq=f"{test_config.LONG_TIME_STEP}min",
)
gen = (
start_at
@ -61,7 +61,7 @@ def vertical_datetime_index():
)
index = pd.Index(gen)
index.name = 'start_at'
index.name = "start_at"
# Sanity check: n_days * n_number_of_opening_hours.
# `+1` as both the `START` and `END` day are included.
@ -74,7 +74,7 @@ def vertical_datetime_index():
@pytest.fixture
def vertical_no_demand(vertical_datetime_index):
"""A vertical time series with order totals: no demand."""
return pd.Series(0, index=vertical_datetime_index, name='n_orders')
return pd.Series(0, index=vertical_datetime_index, name="n_orders")
@pytest.fixture
@ -107,7 +107,7 @@ def order_totals(good_pixel_id):
start_ats = pd.date_range(
test_config.START,
test_config.END,
freq=f'{test_config.LONG_TIME_STEP}min',
freq=f"{test_config.LONG_TIME_STEP}min",
)
gen = (
(pixel_id, start_at)
@ -118,9 +118,9 @@ def order_totals(good_pixel_id):
# Re-index `data` filling in `0`s where there is no demand.
index = pd.MultiIndex.from_tuples(gen)
index.names = ['pixel_id', 'start_at']
index.names = ["pixel_id", "start_at"]
df = pd.DataFrame(data={'n_orders': 1}, index=index)
df = pd.DataFrame(data={"n_orders": 1}, index=index)
# Sanity check: n_pixels * n_time_steps_per_day * n_days.
# `+1` as both the `START` and `END` day are included.