prepare_sector_network: code formatting
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
This commit is contained in:
parent
18fabd930e
commit
0d999a4991
@ -636,8 +636,7 @@ def prepare_data(n):
|
|||||||
nodal_energy_totals = energy_totals.loc[pop_layout.ct].fillna(0.)
|
nodal_energy_totals = energy_totals.loc[pop_layout.ct].fillna(0.)
|
||||||
nodal_energy_totals.index = pop_layout.index
|
nodal_energy_totals.index = pop_layout.index
|
||||||
# district heat share not weighted by population
|
# district heat share not weighted by population
|
||||||
district_heat_share = round(nodal_energy_totals["district heat share"],
|
district_heat_share = nodal_energy_totals["district heat share"].round(2)
|
||||||
ndigits=2)
|
|
||||||
nodal_energy_totals = nodal_energy_totals.multiply(pop_layout.fraction, axis=0)
|
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
|
# copy forward the daily average heat demand into each hour, so it can be multipled by the intraday profile
|
||||||
|
Loading…
Reference in New Issue
Block a user