Skip to content

Commit

Permalink
correctly trigger add_solar_potential_constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
fneum committed May 21, 2024
1 parent ca451fe commit 9545b75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,11 @@ def extra_functionality(n, snapshots):
if EQ_o := constraints["EQ"]:
add_EQ_constraints(n, EQ_o.replace("EQ", ""))

if {"solar-hsat", "solar"}.issubset(config["renewable"].keys()):
if {"solar-hsat", "solar"}.issubset(
config["electricity"]["renewable_carriers"]
) and {"solar-hsat", "solar"}.issubset(
config["electricity"]["extendable_carriers"]["Generator"]
):
add_solar_potential_constraints(n, config)

add_battery_constraints(n)
Expand Down

0 comments on commit 9545b75

Please sign in to comment.