From d2f8162d7b8be83766fe41c88aea2ed50a7042c7 Mon Sep 17 00:00:00 2001 From: Philipp Glaum <95913147+p-glaum@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:56:21 +0200 Subject: [PATCH] prepare_sector_network: correct if statement (#1252) --- scripts/prepare_sector_network.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 3e3e117c..9d099e07 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -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 "