Keep deleting points that got None
This commit is contained in:
parent
4308b5f351
commit
35f743164e
@ -162,7 +162,7 @@ class MapboxIsolines():
|
||||
# delete points that got None
|
||||
location_estimates_filtered = []
|
||||
for i, c in enumerate(costs):
|
||||
if c < isorange * (1 + tolerance):
|
||||
if c != isorange and c < isorange * (1 + tolerance):
|
||||
location_estimates_filtered.append(destinations[i])
|
||||
|
||||
return location_estimates_filtered
|
||||
|
Loading…
Reference in New Issue
Block a user