From 0ecc706000a21ba0497b482839dfef6c5878641c Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Thu, 2 Mar 2023 20:28:47 +0800 Subject: [PATCH] Add EPANET3 format --- api/s13_controls.py | 3 ++- api/s14_rules.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/s13_controls.py b/api/s13_controls.py index f95377e..95832a3 100644 --- a/api/s13_controls.py +++ b/api/s13_controls.py @@ -35,11 +35,12 @@ def set_control(name: str, cs: ChangeSet) -> ChangeSet: #-------------------------------------------------------------- -# [EPANET2] +# [EPA2][EPA3] # LINK linkID setting IF NODE nodeID {BELOW/ABOVE} level # LINK linkID setting AT TIME value (units) # LINK linkID setting AT CLOCKTIME value (units) # (0) (1) (2) (3) (4) (5) (6) (7) +# todo... #-------------------------------------------------------------- def inp_in_control(section: list[str]) -> ChangeSet: if len(section) > 0: diff --git a/api/s14_rules.py b/api/s14_rules.py index 3f7d3d4..714c78c 100644 --- a/api/s14_rules.py +++ b/api/s14_rules.py @@ -35,7 +35,7 @@ def set_rule(name: str, cs: ChangeSet) -> ChangeSet: #-------------------------------------------------------------- -# [EPANET2] +# [EPA2][EPA3] # TODO... #-------------------------------------------------------------- def inp_in_rule(section: list[str]) -> ChangeSet: