Co-authored-by: FabianHofmann <hofmann@fias.uni-frankfurt.de>
This commit is contained in:
Martha Frysztacki [frɨʂtat͡skʲ] 2021-06-30 21:29:08 +02:00 committed by GitHub
parent b10317ee3c
commit cf2eff4127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,8 +131,7 @@ def update_p_nom_max(n):
# the installed capacity might exceed the expansion limit. # the installed capacity might exceed the expansion limit.
# Hence, we update the assumptions. # Hence, we update the assumptions.
n.generators.p_nom_max = (n.generators n.generators.p_nom_max = n.generators[['p_nom_min', 'p_nom_max']].max(1)
.apply(lambda b: b[['p_nom_min','p_nom_max']].max(), axis=1))
def aggregate_p_nom(n): def aggregate_p_nom(n):
return pd.concat([ return pd.concat([