Update scripts/solve_network.py

Co-authored-by: Martha Frysztacki <martha.frysztacki@kit.edu>
This commit is contained in:
Fabian Hofmann 2022-06-28 13:14:47 +02:00 committed by GitHub
parent 74f8ca1c7f
commit 3294ad92eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ def prepare_network(n, solve_opts):
if load_shedding:
n.add("Carrier", "load", color="#dd2e23", nice_name="Load shedding")
buses_i = n.buses.query("carrier == 'AC'").index
if not np.isscalar(load_shedding): load_shedding = 1e2
if not np.isscalar(load_shedding): load_shedding = 1e2 # Eur/kWh
# intersect between macroeconomic and surveybased
# willingness to pay
# http://journal.frontiersin.org/article/10.3389/fenrg.2015.00055/full)