add_electricity: Allow extension of OCGT plants

This commit is contained in:
Jonas Hörsch 2018-10-09 15:44:46 +02:00
parent 6f3b44e5e4
commit f9012c41e1

View File

@ -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',