From 7d64a733827a4e7a7680b701fb47270f0ebdaea0 Mon Sep 17 00:00:00 2001 From: martacki Date: Thu, 21 Dec 2023 11:12:54 +0100 Subject: [PATCH] simplify node_name formulation --- 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 f50e887e..4ab681f8 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -2045,7 +2045,7 @@ def add_heat(n, costs): # add for each retrofitting strength a generator with heat generation profile following the profile of the heat demand for strength in strengths: - node_name = " ".join([i for i in name.split(" ")[2::]]) + node_name = " ".join(name.split(" ")[2::]) n.madd( "Generator", [node],