From f9012c41e1a6fd593183107a5122a859c29ea848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=B6rsch?= Date: Tue, 9 Oct 2018 15:44:46 +0200 Subject: [PATCH] add_electricity: Allow extension of OCGT plants --- scripts/add_electricity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/add_electricity.py b/scripts/add_electricity.py index 5d6514c4..27e0d28b 100644 --- a/scripts/add_electricity.py +++ b/scripts/add_electricity.py @@ -287,7 +287,7 @@ def attach_extendable_generators(n, costs, ppl): _add_missing_carriers_from_costs(n, costs, carriers) if 'OCGT' in carriers: - ocgt = ppl.loc[ppl.Fueltype == 'Natural Gas'].groupby('bus', as_index=False).first() + ocgt = ppl.loc[ppl.Fueltype.isin(('OCGT', 'CCGT'))].groupby('bus', as_index=False).first() n.madd('Generator', ocgt.index, bus=ocgt['bus'], carrier='OCGT',