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

@@ -1,6 +1,25 @@
from .database import *
#--------------------------------------------------------------
# [EPANET2]
# PAGE linesperpage
# STATUS {NONE/YES/FULL}
# SUMMARY {YES/NO}
# MESSAGES {YES/NO}
# ENERGY {NO/YES}
# NODES {NONE/ALL}
# NODES node1 node2 ...
# LINKS {NONE/ALL}
# LINKS link1 link2 ...
# FILE filename
# variable {YES/NO}
# variable {BELOW/ABOVE/PRECISION} value
#--------------------------------------------------------------
def inp_in_report(section: list[str]) -> ChangeSet:
return ChangeSet()
def inp_out_report(name: str) -> list[str]:
lines = []
objs = read_all(name, f"select * from report")