From e28ea888a9604052d6d7b94c8e29e34b74242994 Mon Sep 17 00:00:00 2001 From: George Steel Date: Mon, 26 Dec 2022 20:13:48 -0500 Subject: use random oracle for randomized satin columns and redo split stitches --- lib/stitch_plan/stitch_group.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/stitch_plan/stitch_group.py') diff --git a/lib/stitch_plan/stitch_group.py b/lib/stitch_plan/stitch_group.py index 21beebe1..6dbeb9e5 100644 --- a/lib/stitch_plan/stitch_group.py +++ b/lib/stitch_plan/stitch_group.py @@ -43,14 +43,14 @@ class StitchGroup: # This method allows `len(patch)` and `if patch: return len(self.stitches) - def add_stitches(self, stitches): + def add_stitches(self, stitches, tags=None): for stitch in stitches: - self.add_stitch(stitch) + self.add_stitch(stitch, tags=tags) - def add_stitch(self, stitch): + def add_stitch(self, stitch, tags=None): if not isinstance(stitch, Stitch): # probably a Point - stitch = Stitch(stitch) + stitch = Stitch(stitch, tags=tags) self.stitches.append(stitch) -- cgit v1.2.3