Fill demand with junction data

This commit is contained in:
WQY\qiong
2022-12-10 18:43:40 +08:00
parent 26086596b1
commit 21c820cdd3
3 changed files with 33 additions and 5 deletions

View File

@@ -171,6 +171,10 @@ def _read_inp(inp: str) -> ChangeSet:
elif name == 'END':
pass # :)
# if demand section is empty, fill it with junction data
demands_cs = fill_demand(file_cs['JUNCTIONS'], file_cs['DEMANDS'])
file_cs['DEMANDS'].merge(demands_cs)
# release file
file = {}