Closed TongZhai closed 5 years ago
@TongZhai I added this test that shows how the function can be used. One call returns a list with node, tank, link, pump, and valve counts.
def test_getnetsize(handle):
# node, tank, link, pump, valve
ref_array = np.array([11, 2, 13, 1, 0])
netsize_list = oapi.getnetsize(handle)
assert len(netsize_list) == 5
assert np.array_equal(netsize_list, ref_array)
ENR_nodeCount, ENR_tankCount, ...
were deprecated because they were no longer needed. You are welcome to add them to ENOutputWrapper.py
if you want.
Just tried out the
epanet.output-0.2.0.dev0-cp37-cp37m-win_amd64.whl
in the PyQGIS EPANET ui project (issue 289), it installed correctly, but it is missing some general element count variables such as:ENR_nodeCount
,ENR_linkCount
etc, also, I hope thegetnodeseries
,getnodeattribute
, andgetnoderesult
in the whl have the same api as the current ENR_get versions in the output api dll.