Add EPANET2 input format
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user