Expose node specific api

This commit is contained in:
wqy
2022-09-30 21:01:57 +08:00
parent 964e9af033
commit 85f27cf655
3 changed files with 14 additions and 2 deletions

View File

@@ -136,6 +136,9 @@ def get_curves(name: str) -> list[str]:
def get_patterns(name: str) -> list[str]:
return api.get_patterns(name)
def get_node_links(name: str, node_id: str) -> list[str]:
return api.get_node_links(name, node_id)
############################################################
# title 1.[TITLE]
@@ -266,3 +269,11 @@ def set_valve(name: str, valve_id: str, properties: dict[str, Any]) -> ChangeSet
def delete_valve(name: str, valve_id: str) -> ChangeSet:
return api.delete_valve(name, valve_id)
############################################################
# coord 24.[COORDINATES]
############################################################
def get_node_coord(name: str, node_id: str) -> dict[str, float] | None:
return api.get_node_coord(name, node_id)