summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-07-23 20:22:53 -0400
committerLex Neva <github.com@lexneva.name>2018-07-25 21:18:13 -0400
commit1bd7aa110a1b30a6c44f4d792b3c817e10234c07 (patch)
tree4e652bde1122f44f360e140b696cb0eb81a7e9e1 /lib
parente0cecd6fa444e3b7ea2391ce4f2953ae9fd5f3fa (diff)
change '# stops' in block to be 'stop after?'
Diffstat (limited to 'lib')
-rw-r--r--lib/stitch_plan/stitch_plan.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/stitch_plan/stitch_plan.py b/lib/stitch_plan/stitch_plan.py
index a7cd60e8..682ea09f 100644
--- a/lib/stitch_plan/stitch_plan.py
+++ b/lib/stitch_plan/stitch_plan.py
@@ -97,7 +97,7 @@ class StitchPlan(object):
@property
def num_stops(self):
- return sum(block.num_stops for block in self)
+ return sum(1 for block in self if block.stop_after)
@property
def num_trims(self):
@@ -186,12 +186,6 @@ class ColorBlock(object):
return len(self.stitches)
@property
- def num_stops(self):
- """Number of pauses in this color block."""
-
- return sum(1 for stitch in self if stitch.stop)
-
- @property
def num_trims(self):
"""Number of trims in this color block."""