Skip to content

Commit

Permalink
fix bug in the function getControls
Browse files Browse the repository at this point in the history
Co-Authored-By: ichrys03 <[email protected]>
  • Loading branch information
Mariosmsk and ichrys03 committed Jan 30, 2024
1 parent 2b3f026 commit 9125615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions epyt/epanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2446,11 +2446,11 @@ def getControls(self, *argv):
value[i].Value = self.ControlLevelValues[-1]
if self.ControlTypes[-1] == 'LOWLEVEL':
value[i].Control = 'LINK ' + value[i].LinkID + ' ' + \
value[i].Setting + ' IF NODE ' + \
str(value[i].Setting) + ' IF NODE ' + \
value[i].NodeID + ' BELOW ' + str(value[i].Value)
elif self.ControlTypes[-1] == 'HIGHLEVEL':
value[i].Control = 'LINK ' + value[i].LinkID + ' ' + \
value[i].Setting + ' IF NODE ' + \
str(value[i].Setting) + ' IF NODE ' + \
value[i].NodeID + ' ABOVE ' + str(value[i].Value)
elif self.ControlTypes[-1] == 'TIMER':
value[i].Control = 'LINK ' + value[i].LinkID + ' ' + \
Expand Down

0 comments on commit 9125615

Please sign in to comment.