Remove old inp in routine
This commit is contained in:
@@ -16,18 +16,9 @@ def get_node_coord(name: str, id: str) -> dict[str, float]:
|
||||
# id x y
|
||||
#--------------------------------------------------------------
|
||||
# exception ! need merge to node change set !
|
||||
def inp_in_coord(section: list[str]) -> dict[str, dict[str, float]]:
|
||||
coords = {}
|
||||
for s in section:
|
||||
# skip comment
|
||||
if s.startswith(';'):
|
||||
continue
|
||||
tokens = s.split()
|
||||
coords[tokens[0]] = { 'x': tokens[1], 'y': tokens[2] }
|
||||
return coords
|
||||
|
||||
|
||||
def inp_in_coord_new(line: str) -> str:
|
||||
def inp_in_coord(line: str) -> str:
|
||||
tokens = line.split()
|
||||
node = tokens[0]
|
||||
coord = f"'({tokens[1]}, {tokens[2]})'"
|
||||
|
||||
Reference in New Issue
Block a user