prepare_sector_network: simplify process emissions with outsourced feedstock emissions

This commit is contained in:
Fabian Neumann 2024-01-04 12:47:26 +01:00
parent 593995675e
commit 8054ad382c

View File

@ -2996,16 +2996,14 @@ def add_industry(n, costs):
unit="t_co2", unit="t_co2",
) )
sel = ["process emission"]
if options["co2_spatial"] or options["co2network"]: if options["co2_spatial"] or options["co2network"]:
p_set = ( p_set = (
-industrial_demand.loc[nodes, sel] -industrial_demand.loc[nodes, "process emission"]
.sum(axis=1)
.rename(index=lambda x: x + " process emissions") .rename(index=lambda x: x + " process emissions")
/ nhours / nhours
) )
else: else:
p_set = -industrial_demand.loc[nodes, sel].sum(axis=1).sum() / nhours p_set = -industrial_demand.loc[nodes, "process emission"].sum() / nhours
n.madd( n.madd(
"Load", "Load",