Skip to content

Commit

Permalink
Update epanet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed May 11, 2024
1 parent df8607d commit 37e86e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions epyt/epanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -11210,7 +11210,7 @@ def loadMSXFile(self, msxname, customMSXlib=None, ignore_properties=False):
self.msx = epanetmsxapi(self.msxname, customMSXlib=customMSXlib)

# Message to user if he uses ph with msx
if self.api.ph is not None:
if self.api._ph is not None:
warnings.warn('Please set ph=False when using MSX.')

if ignore_properties:
Expand Down Expand Up @@ -13050,6 +13050,7 @@ def __init__(self, version=2.2, ph=False, loadlib=True, customlib=None):
self.inpfile = None
self.rptfile = None
self.binfile = None
self._ph = None

# Check platform and Load epanet library
# libname = f"epanet{str(version).replace('.', '_')}"
Expand Down Expand Up @@ -13077,8 +13078,6 @@ def __init__(self, version=2.2, ph=False, loadlib=True, customlib=None):

if float(version) >= 2.2 and ph:
self._ph = c_uint64()
else:
self._ph = None

def ENepanet(self, inpfile="", rptfile="", binfile=""):
""" Runs a complete EPANET simulation
Expand Down

0 comments on commit 37e86e6

Please sign in to comment.