[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-07-04 11:40:19 +00:00
parent fbacb76e9c
commit e42b36e83d

View File

@ -2249,12 +2249,14 @@ def add_biomass(n, costs):
solid_biomass_potentials_spatial = biomass_potentials["solid biomass"].rename( solid_biomass_potentials_spatial = biomass_potentials["solid biomass"].rename(
index=lambda x: x + " solid biomass" index=lambda x: x + " solid biomass"
) )
msw_biomass_potentials_spatial = biomass_potentials["municipal solid waste"].rename( msw_biomass_potentials_spatial = biomass_potentials[
index=lambda x: x + " municipal solid waste" "municipal solid waste"
) ].rename(index=lambda x: x + " municipal solid waste")
else: else:
solid_biomass_potentials_spatial = biomass_potentials["solid biomass"].sum() solid_biomass_potentials_spatial = biomass_potentials["solid biomass"].sum()
msw_biomass_potentials_spatial = biomass_potentials["municipal solid waste"].sum() msw_biomass_potentials_spatial = biomass_potentials[
"municipal solid waste"
].sum()
n.add("Carrier", "biogas") n.add("Carrier", "biogas")
n.add("Carrier", "solid biomass") n.add("Carrier", "solid biomass")
@ -2276,10 +2278,12 @@ def add_biomass(n, costs):
unit="MWh_LHV", unit="MWh_LHV",
) )
n.madd("Bus", n.madd(
"Bus",
spatial.msw.nodes, spatial.msw.nodes,
location=spatial.msw.locations, location=spatial.msw.locations,
carrier="municipal solid waste") carrier="municipal solid waste",
)
n.madd( n.madd(
"Store", "Store",
@ -2301,7 +2305,8 @@ def add_biomass(n, costs):
e_initial=solid_biomass_potentials_spatial, e_initial=solid_biomass_potentials_spatial,
) )
n.madd("Store", n.madd(
"Store",
spatial.msw.nodes, spatial.msw.nodes,
bus=spatial.msw.nodes, bus=spatial.msw.nodes,
carrier="municipal solid waste", carrier="municipal solid waste",
@ -3119,7 +3124,7 @@ def add_industry(n, costs):
bus1=non_sequestered_hvc_locations, bus1=non_sequestered_hvc_locations,
carrier="municipal solid waste", carrier="municipal solid waste",
p_nom_extendable=True, p_nom_extendable=True,
efficiency=1., efficiency=1.0,
) )
n.madd( n.madd(