From 7b98afc85aafd56245ce669873d0c9822c6762c0 Mon Sep 17 00:00:00 2001
From: Philipp Glaum
Date: Tue, 3 Sep 2024 16:02:28 +0200
Subject: [PATCH] fix if condition to add msw
---
scripts/prepare_sector_network.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py
index 89175b1f..a83e2d12 100644
--- a/scripts/prepare_sector_network.py
+++ b/scripts/prepare_sector_network.py
@@ -2357,7 +2357,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 not (cf_industry["waste_to_energy"] or cf_industry["waste_to_energy_cc"])
):
logger.warning(
"Flag municipal_solid_waste can be only used with industry "