prepare_sector_network: correct if statement (#1252)

This commit is contained in:
Philipp Glaum 2024-08-30 15:56:21 +02:00 committed by GitHub
parent 88d28de3a1
commit d2f8162d7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2324,8 +2324,7 @@ def add_biomass(n, costs):
if (
options["municipal_solid_waste"]
and not options["industry"]
and cf_industry["waste_to_energy"]
or cf_industry["waste_to_energy_cc"]
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 "