prepare_sector_network: code formatting

Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
This commit is contained in:
lisazeyen 2021-10-01 17:10:42 +02:00 committed by GitHub
parent 18fabd930e
commit 0d999a4991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -636,8 +636,7 @@ def prepare_data(n):
nodal_energy_totals = energy_totals.loc[pop_layout.ct].fillna(0.)
nodal_energy_totals.index = pop_layout.index
# district heat share not weighted by population
district_heat_share = round(nodal_energy_totals["district heat share"],
ndigits=2)
district_heat_share = nodal_energy_totals["district heat share"].round(2)
nodal_energy_totals = nodal_energy_totals.multiply(pop_layout.fraction, axis=0)
# copy forward the daily average heat demand into each hour, so it can be multipled by the intraday profile