From 60a26a67a0194186325e53f3f933fbbcdac05408 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Mon, 20 May 2024 21:08:44 +0200 Subject: [PATCH] simplify check for coal/coke industry demand --- 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 0368397e..0d359e0d 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -3240,7 +3240,7 @@ def add_industry(n, costs): p_set=p_set, ) - if (industrial_demand["coke"].sum() + industrial_demand["coal"].sum()) != 0: + if industrial_demand[["coke", "coal"]].sum().sum() > 0: add_carrier_buses(n, "coal") mwh_coal_per_mwh_coke = 1.366 # from eurostat energy balance