Skip comment

This commit is contained in:
WQY\qiong
2022-11-12 15:25:15 +08:00
parent e9b1aaa539
commit c160ae974a
4 changed files with 12 additions and 0 deletions

View File

@@ -138,6 +138,9 @@ class InpJunction:
def inp_in_junction(section: list[str]) -> ChangeSet:
cs = ChangeSet()
for s in section:
# skip comment
if s.startswith(';'):
continue
obj = InpJunction(s)
cs.append({'operation': API_ADD, 'type': 'junction', 'id': obj.id, 'elevation': obj.elevation, 'demand': obj.demand, 'pattern': obj.pattern})
return cs