From aa6e98a56375b6c8c2c16cfc541a48ca4b239277 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Tue, 5 Apr 2022 16:11:02 +0200 Subject: [PATCH] label built TYNDP links as not under_construction --- scripts/base_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/base_network.py b/scripts/base_network.py index 646a3e9c..9e8421ab 100644 --- a/scripts/base_network.py +++ b/scripts/base_network.py @@ -236,7 +236,7 @@ def _add_links_from_tyndp(buses, links, links_tyndp, europe_shape): carrier='DC', p_nom=links_tyndp["Power (MW)"], length=links_tyndp["Length (given) (km)"].fillna(links_tyndp["Length (distance*1.2) (km)"]), - under_construction=True, + under_construction=~(links_tyndp.status == 'built'), underground=False, geometry=(links_tyndp[["x1", "y1", "x2", "y2"]] .apply(lambda s: str(LineString([[s.x1, s.y1], [s.x2, s.y2]])), axis=1)),