LinkSeries#
- class LinkSeries(out_handle)[source]#
Get a link time series. New to PySWMM-v2!
Note: you can use pandas to convert dict to a pandas Series object with dict keys as index
- Returns:
dict of attribute values with between start_index and end_index with reporting timesteps as keys
- Return type:
dict {datetime : value}
Examples:
from pyswmm import Output, LinkSeries with Output('tests/data/model_full_features.out') as out: ts1 = LinkSeries(out)['C1:C2'].flow_rate ts2 = LinkSeries(out)['C1:C2'].flow_depth ts3 = LinkSeries(out)['C1:C2'].flow_velocity ts4 = LinkSeries(out)['C1:C2'].flow_volume ts5 = LinkSeries(out)['C1:C2'].capacity ts6 = LinkSeries(out)['C1:C2'].pollut_conc_0
Methods
Attributes