Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Mar 13, 2024
1 parent aaa5e8a commit a6eda88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions osmnx/simplification.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,7 @@ def _consolidate_intersections_rebuild_graph( # noqa: C901,PLR0912,PLR0915
# get the unique non-null values (we won't add null attrs)
unique_vals = list(set(nodes_subset[col].dropna()))
if len(unique_vals) == 1:
# if there's 1 unique value for this attribute, keep that
# one value
# if there's 1 unique value for this attribute, keep it
node_attrs[col] = unique_vals[0]
elif len(unique_vals) > 1:
# if there are multiple unique values, keep all uniques
Expand Down

0 comments on commit a6eda88

Please sign in to comment.