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 Mar 15, 2024
1 parent beff056 commit 708b409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swmmanywhere/graph_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ def __call__(self,
G (nx.Graph): A graph
"""
G = G.copy()
surface_elevations = {n : d['surface_elevation'] for n, d in G.nodes(data=True)}
surface_elevations = nx.get_node_attributes(G, 'surface_elevation')
topological_order = list(nx.topological_sort(G))
chamber_floor = {}
edge_diams: dict[tuple[Hashable,Hashable,int],float] = {}
Expand Down

0 comments on commit 708b409

Please sign in to comment.