Skip to content

Commit e38e6f5

Browse files
committed
Merge branch 'main' of https://github.com/USEPA/WNTR
2 parents ce0f29d + 9e4e838 commit e38e6f5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ include wntr/epanet/Windows/*
66
include wntr/sim/aml/*.pyd
77
include wntr/sim/aml/*.so
88
include wntr/sim/network_isolation/*.pyd
9-
include wntr/sim/network_isolation/*.so
9+
include wntr/sim/network_isolation/*.so
10+
include wntr/tests/networks_for_testing/*.inp

documentation/resultsobject.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Simulation results are stored in a results object which contains:
1919
>>> import pandas as pd
2020
>>> import matplotlib.pylab as plt
2121
>>> import wntr
22-
>>> pd.set_option('precision', 2)
22+
>>> pd.set_option('display.precision', 2)
2323
>>> try:
2424
... wn = wntr.network.model.WaterNetworkModel('../examples/networks/Net3.inp')
2525
... except:
@@ -201,4 +201,4 @@ For example, DataFrames can be saved to Excel files using:
201201
>>> pressure.to_excel('pressure.xlsx')
202202

203203
.. note::
204-
The Pandas method ``to_excel`` requires the Python package **openpyxl** [GaCl18]_, which is an optional dependency of WNTR.
204+
The Pandas method ``to_excel`` requires the Python package **openpyxl** [GaCl18]_, which is an optional dependency of WNTR.

wntr/network/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ def add_tank(self, name, elevation=0.0, init_level=3.048,
19551955
assert isinstance(diameter, (int, float)), "diameter must be a float"
19561956
assert isinstance(min_vol, (int, float)), "min_vol must be a float"
19571957
assert isinstance(vol_curve, (type(None), str)), "vol_curve must be a string"
1958-
assert isinstance(overflow, (type(None), bool)), "overflow must be a Boolean"
1958+
assert isinstance(overflow, (type(None), str, bool, int)), "overflow must be a bool, 'YES' or 'NO, or 0 or 1"
19591959
assert isinstance(coordinates, (type(None), (tuple,list,))), "coordinates must be a tuple"
19601960

19611961
elevation = float(elevation)

0 commit comments

Comments
 (0)