Skip to content

Commit

Permalink
Update graph_utilities.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobson committed Feb 22, 2024
1 parent a1865f4 commit 6c523f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions swmmanywhere/graph_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,9 +924,7 @@ def process_successors(G: nx.Graph,
# TODO - could do timearea here if i hated myself enough
anc = nx.ancestors(G,node).union([node])
tot = sum([G.nodes[anc_node]['catchment_area'] for anc_node in anc])
ca = G.nodes[node]['contributing_area']
print(f'tot: {tot}, up: {ca}')
#TODO same as contributing_area?

M3_PER_HR_TO_M3_PER_S = 1 / 60 / 60
Q = tot * hydraulic_design.precipitation * M3_PER_HR_TO_M3_PER_S

Expand Down

0 comments on commit 6c523f7

Please sign in to comment.