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