summaryrefslogtreecommitdiff
path: root/lib/stitches/running_stitch.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2023-04-13 20:27:20 -0400
committerGitHub <noreply@github.com>2023-04-13 20:27:20 -0400
commitc59af0e8f44a1996799ccf83b78b340507bbd062 (patch)
tree05738463cd5eed07146273e8fc94e69df77e7300 /lib/stitches/running_stitch.py
parent6273393b908ddbc891afc719bc8a3d42c2560b1f (diff)
parent63effb841fa3ea507135e10331b8ecb1a64e94dd (diff)
Merge pull request #2190 from inkstitch/lexelby/meander-fixes
meander fixes
Diffstat (limited to 'lib/stitches/running_stitch.py')
-rw-r--r--lib/stitches/running_stitch.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stitches/running_stitch.py b/lib/stitches/running_stitch.py
index 1dbfcaaf..46f3a3e9 100644
--- a/lib/stitches/running_stitch.py
+++ b/lib/stitches/running_stitch.py
@@ -10,6 +10,8 @@ from copy import copy
import numpy as np
from shapely import geometry as shgeo
+
+from ..debug import debug
from ..utils import prng
from ..utils.geometry import Point
from ..utils.threading import check_stop_flag
@@ -246,6 +248,7 @@ def path_to_curves(points: typing.List[Point], min_len: float):
return curves
+@debug.time
def running_stitch(points, stitch_length, tolerance):
# Turn a continuous path into a running stitch.
stitches = [points[0]]