Merge pull request #814 from yerbol-akhmetov/no_gas_gen

No gas generators
This commit is contained in:
Martha Frysztacki 2023-12-28 10:11:45 +01:00 committed by GitHub
commit ba928bf839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -467,6 +467,9 @@ def add_carrier_buses(n, carrier, nodes=None):
* costs.at[carrier, "discount rate"], # preliminary value to avoid zeros * costs.at[carrier, "discount rate"], # preliminary value to avoid zeros
) )
if carrier == "gas":
return
n.madd( n.madd(
"Generator", "Generator",
nodes, nodes,