Keep deleting points that got None

This commit is contained in:
Antonio 2018-03-02 10:27:37 +01:00
parent 4308b5f351
commit 35f743164e

View File

@ -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