Subcatchment.slope#
- property Subcatchment.slope#
Get/set subcatchment slope.
- Returns:
Parameter Value
- Return type:
Examples:
>>> from pyswmm import Simulation, Subcatchments >>> >>> with Simulation('tests/data/model_weir_setting.inp') as sim: ... s1 = Subcatchments(sim)["S1"] ... print(s1.slope) 0.01
Setting the value
>>> from pyswmm import Simulation, Subcatchments >>> >>> with Simulation('tests/data/model_weir_setting.inp') as sim: ... s1 = Subcatchments(sim)["S1"] ... print(s1.slope) ... s1.slope = 0.02 ... print(s1.slope) 0.1 0.2