Skip to content

Commit

Permalink
Minor changes to rpt warnings function
Browse files Browse the repository at this point in the history
  • Loading branch information
everettsp committed Oct 30, 2023
1 parent 97e9db2 commit 9f7e424
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions swmmio/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def rpt_warnings(self, verbose=False):
"""
# first, make sure the rpt is valid
if self.rpt_is_valid(verbose=verbose):
# check if the rpt has ERRORS output from SWMM
# check if the rpt has WARNINGS output from SWMM
warnings = list()
with open(self.rpt.path) as f:
for line in f:
Expand All @@ -188,7 +188,9 @@ def rpt_warnings(self, verbose=False):
warnings.append(line[:-1])
elif '****************' in line:
break
return warnings
else:
warnings = 'RPT file is not valid'
return warnings


def conduits(self):
Expand Down

0 comments on commit 9f7e424

Please sign in to comment.