label built TYNDP links as not under_construction
This commit is contained in:
parent
eca4a017db
commit
aa6e98a563
@ -236,7 +236,7 @@ def _add_links_from_tyndp(buses, links, links_tyndp, europe_shape):
|
|||||||
carrier='DC',
|
carrier='DC',
|
||||||
p_nom=links_tyndp["Power (MW)"],
|
p_nom=links_tyndp["Power (MW)"],
|
||||||
length=links_tyndp["Length (given) (km)"].fillna(links_tyndp["Length (distance*1.2) (km)"]),
|
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,
|
underground=False,
|
||||||
geometry=(links_tyndp[["x1", "y1", "x2", "y2"]]
|
geometry=(links_tyndp[["x1", "y1", "x2", "y2"]]
|
||||||
.apply(lambda s: str(LineString([[s.x1, s.y1], [s.x2, s.y2]])), axis=1)),
|
.apply(lambda s: str(LineString([[s.x1, s.y1], [s.x2, s.y2]])), axis=1)),
|
||||||
|
Loading…
Reference in New Issue
Block a user