add_electricity: OCGT plants don't need to be extendable
This commit is contained in:
parent
f70e0304e5
commit
47bc13cf51
@ -309,7 +309,7 @@ def attach_hydro(n, costs, ppl):
|
|||||||
def attach_extendable_generators(n, costs, ppl):
|
def attach_extendable_generators(n, costs, ppl):
|
||||||
elec_opts = snakemake.config['electricity']
|
elec_opts = snakemake.config['electricity']
|
||||||
carriers = list(elec_opts['extendable_carriers']['Generator'])
|
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)
|
_add_missing_carriers_from_costs(n, costs, carriers)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user