From cf2413f9e33d401d7129741c52d8f493100db3fd Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 20 Dec 2020 20:42:50 -0800 Subject: [PATCH] remove_colinear_vertices implementation assumes no duplicate vertices, so we need to remove them first --- masque/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/utils.py b/masque/utils.py index a09a09c..6de82cd 100644 --- a/masque/utils.py +++ b/masque/utils.py @@ -120,7 +120,7 @@ def remove_colinear_vertices(vertices: numpy.ndarray, closed_path: bool = True) Returns: `vertices` with colinear (superflous) vertices removed. """ - vertices = numpy.array(vertices) + vertices = remove_duplicate_vertices(vertices) # Check for dx0/dy0 == dx1/dy1