Skip to content

Commit

Permalink
update insert_per_scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert John committed Jan 9, 2025
1 parent 3cc9b6c commit 4f59742
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/egon/data/datasets/chp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ def insert_chp_statusquo():
].Nettonennleistung.sum()

print(
f"""
CHPs with a total installed electrical capacity of {dropped_capacity} kW are dropped
because of missing or wrong location data
f"""
CHPs with a total installed electrical capacity of {dropped_capacity} kW are dropped
because of missing or wrong location data
"""
)

Expand Down Expand Up @@ -648,14 +648,16 @@ def insert_chp_egon100re():

insert_per_scenario = set()

if "status2019" in config.settings()["egon-data"]["--scenarios"]:
insert_per_scenario.add(insert_chp_statusquo)
for scenario in config.settings()["egon-data"]["--scenarios"]:

if "eGon2035" in config.settings()["egon-data"]["--scenarios"]:
insert_per_scenario.add(insert_chp_egon2035)
if "status" in scenario:
insert_per_scenario.add(insert_chp_statusquo)

if scenario == "eGon2035":
insert_per_scenario.add(insert_chp_egon2035)

if "eGon100RE" in config.settings()["egon-data"]["--scenarios"]:
insert_per_scenario.add(insert_chp_egon100re)
if scenario == "eGon100RE":
insert_per_scenario.add(insert_chp_egon100re)

tasks = tasks + (insert_per_scenario, assign_heat_bus)

Expand Down

0 comments on commit 4f59742

Please sign in to comment.