Support to get link on boundary
This commit is contained in:
9
dev.py
9
dev.py
@@ -1,11 +1,10 @@
|
||||
from tjnetwork import *
|
||||
|
||||
p = 'dev'
|
||||
read_inp(p, './inp/net3.inp', '3')
|
||||
|
||||
read_inp(p, f'./inp/net3.inp', '3')
|
||||
open_project(p)
|
||||
|
||||
sass = calculate_service_area(p)
|
||||
assert len(sass) == 25
|
||||
print(sass[0])
|
||||
print(sass[1])
|
||||
add_region(p, ChangeSet({'id': 'r', 'boundary': [(24.614,13.087), (24.835,11.069), (26.144,10.747), (27.290,11.543), (25.726,12.987), (24.614,13.087)]}))
|
||||
links = get_links_on_region_boundary(p, 'r')
|
||||
print(links)
|
||||
Reference in New Issue
Block a user