Skip to content

Commit faf71b5

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

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

scripts/add_electricity.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,15 +1213,21 @@ def attach_stores(
12131213
)
12141214

12151215
tyndp_renewable_carriers = (
1216-
list(chain(*params.electricity["pecd_renewable_profiles"]["technologies"].values()))
1216+
list(
1217+
chain(
1218+
*params.electricity["pecd_renewable_profiles"]["technologies"].values()
1219+
)
1220+
)
12171221
if params.electricity["pecd_renewable_profiles"]["enable"]
12181222
else []
12191223
)
12201224
if len(tyndp_renewable_carriers) > 0:
12211225
logger.info(
12221226
f"Skipping renewable carriers - they will be attached later with TYNDP data: {', '.join(tyndp_renewable_carriers)}"
12231227
)
1224-
renewable_carriers = set(params.electricity["renewable_carriers"]).difference(tyndp_renewable_carriers)
1228+
renewable_carriers = set(params.electricity["renewable_carriers"]).difference(
1229+
tyndp_renewable_carriers
1230+
)
12251231
extendable_carriers = params.electricity["extendable_carriers"]
12261232
conventional_carriers = params.electricity["conventional_carriers"]
12271233
conventional_inputs = {

scripts/clean_pecd_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ def read_pecd_file(
140140

141141
pecd_df = (
142142
pd.concat(demand, axis=1)
143-
.reindex(nodes, axis=1, fill_value=0.0) # include missing node data with empty columns
143+
.reindex(
144+
nodes, axis=1, fill_value=0.0
145+
) # include missing node data with empty columns
144146
.rename(
145147
columns=lambda x: x.replace("UK", "GB")
146148
) # replace UK with GB for naming convention

0 commit comments

Comments
 (0)