Skip to content

Commit

Permalink
Merge branch 'merge_helpers' of https://github.com/finozzifa/pypsa-earth
Browse files Browse the repository at this point in the history
 into merge_helpers
  • Loading branch information
finozzifa committed May 23, 2024
2 parents 64709a0 + d56b0ff commit ef16bc3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,10 @@ def load_network_for_plots(

def update_p_nom_max(n):
"""
If extendable carriers (solar/onwind/...) have capacity >= 0,
e.g. existing assets from the OPSD project are included to the network,
the installed capacity might exceed the expansion limit.
If extendable carriers (solar/onwind/...) have capacity >= 0, e.g. existing
assets from the OPSD project are included to the network, the installed
capacity might exceed the expansion limit.
Hence, we update the assumptions.
"""
n.generators.p_nom_max = n.generators[["p_nom_min", "p_nom_max"]].max(1)
Expand Down

0 comments on commit ef16bc3

Please sign in to comment.