add_electricity: OCGT plants don't need to be extendable

This commit is contained in:
Jonas Hoersch 2019-01-21 18:45:19 +01:00
parent f70e0304e5
commit 47bc13cf51

View File

@ -309,7 +309,7 @@ def attach_hydro(n, costs, ppl):
def attach_extendable_generators(n, costs, ppl):
elec_opts = snakemake.config['electricity']
carriers = list(elec_opts['extendable_carriers']['Generator'])
assert carriers == ['OCGT'], "Only OCGT plants as extendable generators allowed for now"
assert set(carriers).issubset(['OCGT']), "Only OCGT plants as extendable generators allowed for now"
_add_missing_carriers_from_costs(n, costs, carriers)