Skip to content

Commit

Permalink
Ensure only rows with coordinates are considered
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Dec 1, 2023
1 parent 9239c6b commit ddbb733
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taxonomies/trees/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def func(rows):
lon, lat = transformer.transform(x, y)
row['location-x'] = lon
row['location-y'] = lat
yield row
if row['location-x'] and row['location-y']:
yield row
return func

def conditional(self):
Expand Down

0 comments on commit ddbb733

Please sign in to comment.