Skip to content

Commit

Permalink
Merge branch 'features/#361-heat-demands-from-pypsaeur' into run-stat…
Browse files Browse the repository at this point in the history
…us2019-and-egon100re-DE
  • Loading branch information
ClaraBuettner committed Jan 16, 2025
2 parents 8a36d43 + c926673 commit e1fe853
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/egon/data/datasets/heat_demand_timeseries/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ def create_district_heating_profile_python_like(scenario="eGon2035"):
right_on="index",
)

# Drop cells without a demand or outside of MVGD
slice_df = slice_df[
slice_df.zensus_population_id.isin(annual_demand.index)]

for hour in range(24):
slice_df[hour] = (
slice_df.idp.str[hour]
Expand Down
2 changes: 1 addition & 1 deletion src/egon/data/datasets/heat_etrago/power_to_heat.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def insert_power_to_heat_per_level(
)

# Insert values into dataframe
links.bus0 = gdf.power_bus.values
links.bus0 = gdf.power_bus.values.astype(int)
links.bus1 = gdf.heat_bus.values
links.p_nom = gdf.capacity.values
links.topo = gdf.geometry.values
Expand Down

0 comments on commit e1fe853

Please sign in to comment.