Refine
This commit is contained in:
@@ -833,7 +833,7 @@ def get_node_coord(name: str, node_id: str) -> dict[str, float]:
|
||||
# DingZQ, 2024-12-08, get all node coord
|
||||
# id, x, y
|
||||
def get_network_coords(name: str) -> dict[str, dict[str, float]]:
|
||||
node_ids = api.get_all_node_ids(name)
|
||||
node_ids = api.get_nodes(name)
|
||||
result = {}
|
||||
for node_id in node_ids:
|
||||
result[node_id] = api.get_node_coord(name, node_id)
|
||||
|
||||
Reference in New Issue
Block a user