Skip to content

Commit 7a9831b

Browse files
committed
Update epamodule.py
1 parent 5a2d425 commit 7a9831b

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

epanet-module/epamodule.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -112,23 +112,23 @@ def ENsettitle(line1,line2,line3):
112112

113113

114114
def ENsetflowunits(units_code):
115-
"""Set flow units
116-
117-
Arguments:
118-
units_code: int code for unit type:
119-
EN_CFS 0 cubic feet per second
120-
EN_GPM 1 gallons per minute
121-
EN_MGD 2 million gallons per day
122-
EN_IMGD 3 Imperial mgd
123-
EN_AFD 4 acre-feet per day
124-
EN_LPS 5 liters per second
125-
EN_LPM 6 liters per minute
126-
EN_MLD 7 million liters per day
127-
EN_CMH 8 cubic meters per hour
128-
EN_CMD 9 cubic meters per day
129-
"""
130-
ierr = _lib.ENsetflowunits(ctypes.c_int(units_code))
131-
if ierr != 0: raise ENtoolkitError(ierr)
115+
"""Set flow units
116+
117+
Arguments:
118+
units_code: int code for unit type:
119+
EN_CFS 0 cubic feet per second
120+
EN_GPM 1 gallons per minute
121+
EN_MGD 2 million gallons per day
122+
EN_IMGD 3 Imperial mgd
123+
EN_AFD 4 acre-feet per day
124+
EN_LPS 5 liters per second
125+
EN_LPM 6 liters per minute
126+
EN_MLD 7 million liters per day
127+
EN_CMH 8 cubic meters per hour
128+
EN_CMD 9 cubic meters per day
129+
"""
130+
ierr = _lib.ENsetflowunits(ctypes.c_int(units_code))
131+
if ierr != 0: raise ENtoolkitError(ierr)
132132

133133

134134
def ENgetnodetype(index):

0 commit comments

Comments
 (0)