Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit f19506e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fa2f312 commit f19506e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tests/conftest.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,16 @@ def gsp_yields(db_session):
228228
"""Make fake GSP data"""
229229

230230
gsp_yield_sqls = []
231-
for gsp_id in range(1,5):
232-
gsp_sql_1: LocationSQL = Location(gsp_id=gsp_id, label="GSP_1", installed_capacity_mw=1).to_orm()
231+
for gsp_id in range(1, 5):
232+
gsp_sql_1: LocationSQL = Location(
233+
gsp_id=gsp_id, label="GSP_1", installed_capacity_mw=1
234+
).to_orm()
233235

234236
for hour in range(0, 8):
235237
for minute in range(0, 60, 30):
236238
gsp_yield_1 = GSPYield(
237-
datetime_utc=datetime(2022, 1, 1, hour, minute), solar_generation_kw=hour + minute
239+
datetime_utc=datetime(2022, 1, 1, hour, minute),
240+
solar_generation_kw=hour + minute,
238241
)
239242
gsp_yield_1_sql = gsp_yield_1.to_orm()
240243
gsp_yield_1_sql.location = gsp_sql_1

tests/load/gsp/test_gsp_live.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
import pytest
66
from freezegun import freeze_time
77

8-
98
from ocf_datapipes.load.gsp.database import (
10-
get_gsp_power_from_database,
119
OpenGSPFromDatabaseIterDataPipe,
10+
get_gsp_power_from_database,
1211
)
1312

1413

0 commit comments

Comments
 (0)