Add EPANET2 input format

This commit is contained in:
WQY\qiong
2023-02-28 23:04:46 +08:00
parent 97c409535f
commit ee829c0731
23 changed files with 163 additions and 0 deletions

View File

@@ -10,6 +10,11 @@ def get_node_coord(name: str, id: str) -> dict[str, float]:
row = read(name, f"select * from coordinates where node = '{id}'")
return _to_client_point(row['coord'])
#--------------------------------------------------------------
# [EPANET2]
# id x y
#--------------------------------------------------------------
# exception ! need merge to node change set !
def inp_in_coord(section: list[str]) -> dict[str, dict[str, float]]:
coords = {}