From cf2eff4127f27287d2b22e9cac2bec2f15116b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martha=20Frysztacki=20=5Bfr=C9=A8=CA=82tat=CD=A1sk=CA=B2?= =?UTF-8?q?=5D?= Date: Wed, 30 Jun 2021 21:29:08 +0200 Subject: [PATCH] style Co-authored-by: FabianHofmann --- scripts/_helpers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/_helpers.py b/scripts/_helpers.py index 622a3133..0c6a4658 100644 --- a/scripts/_helpers.py +++ b/scripts/_helpers.py @@ -131,8 +131,7 @@ def update_p_nom_max(n): # the installed capacity might exceed the expansion limit. # Hence, we update the assumptions. - n.generators.p_nom_max = (n.generators - .apply(lambda b: b[['p_nom_min','p_nom_max']].max(), axis=1)) + n.generators.p_nom_max = n.generators[['p_nom_min', 'p_nom_max']].max(1) def aggregate_p_nom(n): return pd.concat([