From a6eda887d9efbb5c3df34ec2ca2978e3bee7dddf Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Tue, 12 Mar 2024 17:40:41 -0700 Subject: [PATCH] fix comment --- osmnx/simplification.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osmnx/simplification.py b/osmnx/simplification.py index f5adba720..4068e1204 100644 --- a/osmnx/simplification.py +++ b/osmnx/simplification.py @@ -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