Skip to content

Commit

Permalink
Merge branch 'barneydobson-patch-2' of https://github.com/ImperialCol…
Browse files Browse the repository at this point in the history
…legeLondon/SWMManywhere into barneydobson-patch-2
  • Loading branch information
Dobson committed Dec 12, 2024
2 parents 9fc06e5 + 6f05fc3 commit 871ac26
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/swmmanywhere/graphfcns/design_graphfcns.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,15 @@ def process_successors(
hydraulic_design (parameters.HydraulicDesign): A HydraulicDesign parameter
object
"""
# Find contributing area with ancestors
# TODO - could do timearea here if i hated myself enough
anc = nx.ancestors(G, node).union([node])
tot = sum([G.nodes[anc_node]["contributing_area"] for anc_node in anc])
M3_PER_HR_TO_M3_PER_S = 1 / 60 / 60
Q = tot * hydraulic_design.precipitation * M3_PER_HR_TO_M3_PER_S

for ix, ds_node in enumerate(G.successors(node)):
edge = G.get_edge_data(node, ds_node, 0)
# Find contributing area with ancestors
# TODO - could do timearea here if i hated myself enough



# Design the pipe to find the diameter and invert depth
diam, depth = design_pipe(
Expand Down

0 comments on commit 871ac26

Please sign in to comment.