Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions swmmio/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,13 @@ def nodes(self, bbox=None, subset=None):
# add results data if a rpt file was found
depth_summ = create_dataframeRPT(rpt.path, "Node Depth Summary")
flood_summ = create_dataframeRPT(rpt.path, "Node Flooding Summary")
inflw_summ = create_dataframeRPT(rpt.path, "Node Inflow Summary")

# join the rpt data (index on depth df, suffixes for common cols)
rpt_df = depth_summ.join(
flood_summ, lsuffix='_depth', rsuffix='_flood')
rpt_df = rpt_df.join(
inflw_summ, lsuffix='_inflow')
all_nodes = all_nodes.join(rpt_df) # join to the all_nodes df

all_nodes = all_nodes.join(self.inp.coordinates[['X', 'Y']])
Expand Down