Skip to content

Commit

Permalink
Filter target values by scenario name
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Dec 16, 2021
1 parent f3ea61b commit d456365
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/egon/data/datasets/heat_supply/district_heating.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def capacity_per_district_heating_category(district_heating_areas, scenario):
'urban_central_resistive_heater',
'urban_central_geo_thermal',
'urban_central_solar_thermal_collector')
AND scenario_name = '{scenario}'
""",
index_col="technology",
)
Expand Down
2 changes: 1 addition & 1 deletion src/egon/data/datasets/power_plants/wind_farms.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def insert():
)

# target_power_df has the expected capacity of each federal state
sql = "SELECT carrier, capacity, nuts, scenario_name FROM supply.egon_scenario_capacities"
sql = "SELECT carrier, capacity, nuts, scenario_name FROM supply.egon_scenario_capacities WHERE scenario_name='eGon2035'"
target_power_df = pd.read_sql(sql, con)

# mv_districts has geographic info of medium voltage districts in Germany
Expand Down

0 comments on commit d456365

Please sign in to comment.