From 2f9121b0aae7084f173d029da09e33fc96827685 Mon Sep 17 00:00:00 2001 From: Dobson Date: Thu, 7 Mar 2024 14:48:01 +0000 Subject: [PATCH] Update metric_utilities.py --- swmmanywhere/metric_utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swmmanywhere/metric_utilities.py b/swmmanywhere/metric_utilities.py index 98fb7926..d9288fc8 100644 --- a/swmmanywhere/metric_utilities.py +++ b/swmmanywhere/metric_utilities.py @@ -195,7 +195,7 @@ def dominant_outlet(G: nx.DiGraph, # Identify the outlet with the highest flow outlet_flows = results.loc[(results.variable == 'flow') & (results.object.isin(outlet_arcs))] - max_outlet_arc = outlet_flows.groupby('object').value.mean().idxmax() + max_outlet_arc = outlet_flows.groupby('object').value.median().idxmax() max_outlet = [v for u,v,d in G.edges(data=True) if d['id'] == max_outlet_arc][0]