Skip to content

Commit

Permalink
typo change- function names
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed Jun 20, 2024
1 parent 0ba152f commit 7258d5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions epyt/epanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -13291,25 +13291,25 @@ def setMSXPatternMatrix(self, pattern_matrix):
for i, pattern in enumerate(pattern_matrix):
self.msx.MSXsetpattern(i+1, pattern, nfactors)

def getallAtr(self, obj):
def getAllAtr(self, obj):
"""Prints all attributes of a given Python object
example:
filename = 'Net1.inp' #you can also try 'net2-cl2.inp', 'Net3.inp', etc.
d = epanet(filename)
Q = d.getComputedQualityTimeSeries()
d.getallAtr(Q) #Will print Time, LinkQuality , NodeQuality and MassFlowRate
d.getAllAtr(Q) #Will print Time, LinkQuality , NodeQuality and MassFlowRate
"""
for k, v in obj.__dict__.items():
print(k, v)
if hasattr(v, '__dict__'):
getallAtr(v)

def getmethods(self):
def getMethods(self):
"""Returns all methods of epanet
example:
filename = 'L-TOWN.inp'
d=epanet(filename)
methods = G.getmethods()
methods = G.getMethods()
print(methods)
"""
methods_dir = [method for method in dir(self) if
Expand Down

0 comments on commit 7258d5c

Please sign in to comment.