[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-08-05 08:46:28 +00:00
parent 69f51ec7d6
commit e0b5fe9048

View File

@ -2267,12 +2267,17 @@ def add_biomass(n, costs):
n.add("Carrier", "biogas") n.add("Carrier", "biogas")
n.add("Carrier", "solid biomass") n.add("Carrier", "solid biomass")
if (
if (options["municipal_solid_waste"] and not options["industry"] options["municipal_solid_waste"]
and cf_industry["waste_to_energy"] or cf_industry["waste_to_energy_cc"]): and not options["industry"]
logger.warning("Flag municipal_solid_waste can be only used with industry " and cf_industry["waste_to_energy"]
"sector waste to energy." or cf_industry["waste_to_energy_cc"]
"Setting municipal_solid_waste=False.") ):
logger.warning(
"Flag municipal_solid_waste can be only used with industry "
"sector waste to energy."
"Setting municipal_solid_waste=False."
)
options["municipal_solid_waste"] = False options["municipal_solid_waste"] = False
if options["municipal_solid_waste"]: if options["municipal_solid_waste"]:
@ -2314,7 +2319,6 @@ def add_biomass(n, costs):
unit="MWh_LHV", unit="MWh_LHV",
) )
n.madd( n.madd(
"Store", "Store",
spatial.gas.biogas, spatial.gas.biogas,
@ -2383,8 +2387,6 @@ def add_biomass(n, costs):
p_nom_extendable=True, p_nom_extendable=True,
) )
n.madd( n.madd(
"Link", "Link",
spatial.gas.biogas_to_gas, spatial.gas.biogas_to_gas,