From 7708d30820e15eb5afcc1bdfb4858ab0e40589b0 Mon Sep 17 00:00:00 2001 From: everett Date: Tue, 17 Oct 2023 14:04:22 -0700 Subject: [PATCH] Update profiler.py added fix for 'ELEVATION' offset option --- swmmio/graphics/profiler.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/swmmio/graphics/profiler.py b/swmmio/graphics/profiler.py index a3ecd70..fd9552b 100644 --- a/swmmio/graphics/profiler.py +++ b/swmmio/graphics/profiler.py @@ -133,8 +133,11 @@ def _add_link_plot(ax, us_x_position, ds_x_position, model, link_set, width=0, g nodes = model.nodes.dataframe links = model.links.dataframe - us_node_el = float(nodes.loc[[us_node]].InvertElev) - ds_node_el = float(nodes.loc[[ds_node]].InvertElev) + if model.inp.options.loc['LINK_OFFSETS','Value'] == "ELEVATION": + us_node_el, ds_node_el = 0.0, 0.0 + else: + us_node_el = float(nodes.loc[[us_node]].InvertElev) + ds_node_el = float(nodes.loc[[ds_node]].InvertElev) link_type = links.loc[[link_id]].Type[0] mid_x = []