Skip to content

Commit

Permalink
Merge pull request #60 from ImperialCollegeLondon/outlet_match_metric
Browse files Browse the repository at this point in the history
Outlet match metric
  • Loading branch information
barneydobson authored Mar 14, 2024
2 parents 2fe0f62 + 2f9121b commit ac6fdbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swmmanywhere/metric_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,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]

Expand Down

0 comments on commit ac6fdbb

Please sign in to comment.