Skip to content

Commit

Permalink
resolve pandas future warning, integer keys
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklise committed May 7, 2024
1 parent bda99a2 commit 1df8f3c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wntr/metrics/topographic.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ def valve_segments(G, valve_layer):
seg_label[all_names.index(node_name)] = seg_index

# Collect valved link names
valved_link_names = []
for i, row in valve_layer.iterrows():
valved_link_names.append(row[0])
valved_link_names = list(valve_layer['link'].unique())

# Remove valved edges from G
valved_edges = []
Expand Down

0 comments on commit 1df8f3c

Please sign in to comment.