Skip to content

Commit

Permalink
Check valve missing should mean false
Browse files Browse the repository at this point in the history
  • Loading branch information
dbhart authored Sep 20, 2024
1 parent 2ba222a commit c9b7ad6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wntr/network/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2333,6 +2333,7 @@ def add_pipe(
False if the pipe does not have a check valve.
"""
if check_valve is None: check_valve = False
assert (
isinstance(name, str) and len(name) < 32 and name.find(" ") == -1
), "name must be a string with less than 32 characters and contain no spaces"
Expand Down

0 comments on commit c9b7ad6

Please sign in to comment.