Skip to content

Commit 36a08d9

Browse files
committed
Merge branch 'rework-import-ban' of github.com:PyPSA/pypsa-de into rework-import-ban
2 parents a7c913a + 956dc4c commit 36a08d9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scripts/pypsa-de/additional_functionality.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,10 +650,12 @@ def add_h2_derivate_limit(n, investment_year, limits_volume_max):
650650
cname = f"{carrier}_import_limit-{ct}"
651651

652652
incoming_p = (
653-
n.model["Link-p"].loc[:, incoming[idx]] * n.snapshot_weightings.generators
653+
n.model["Link-p"].loc[:, incoming[idx]]
654+
* n.snapshot_weightings.generators
654655
).sum()
655656
outgoing_p = (
656-
n.model["Link-p"].loc[:, outgoing[idx]] * n.snapshot_weightings.generators
657+
n.model["Link-p"].loc[:, outgoing[idx]]
658+
* n.snapshot_weightings.generators
657659
).sum()
658660

659661
lhs = incoming_p - outgoing_p

scripts/pypsa-de/plot_ariadne_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3157,7 +3157,7 @@ def plot_h2_trade(
31573157

31583158
plot_elec_trade(
31593159
networks,
3160-
planning_horizons,
3160+
planning_horizons,
31613161
tech_colors,
31623162
savepath=f"{snakemake.output.elec_transmission}/elec-trade-DE.pdf",
31633163
)

0 commit comments

Comments
 (0)