diff options
-rw-r--r-- | transformers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transformers.py b/transformers.py index 2a49a11..92ee439 100644 --- a/transformers.py +++ b/transformers.py @@ -17,7 +17,7 @@ def add_extremities(stream, k): def extremities(x): return (x[id_polyline][:k], x[id_polyline][-k:]) stream = Filter(stream, lambda x: len(x[id_polyline])>=k) - stream = Mapping(stream, extremeties, ('first_k', 'last_k')) + stream = Mapping(stream, extremities, ('first_k', 'last_k')) return stream def add_destination(stream): |