Conduit.is_pump#

Conduit.is_pump()#

Check if link is a Pump Type.

Returns:

is pump

Return type:

bool

Examples:

>>> from pyswmm import Simulation, Links
>>>
>>> with Simulation('tests/data/model_weir_setting.inp') as sim:
...     c1c2 = Links(sim)["C1:C2"]
...     print(c1c2.is_pump())
False