From 6b24e41a1ed74d716b3aee1df31cf6cfb559b288 Mon Sep 17 00:00:00 2001 From: "Mehmet B. Ercan" Date: Mon, 2 Sep 2019 09:49:48 +0300 Subject: [PATCH] Added node inflow report into nodes dataframe --- swmmio/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swmmio/core.py b/swmmio/core.py index 9a95249..0b86511 100644 --- a/swmmio/core.py +++ b/swmmio/core.py @@ -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']])