summaryrefslogtreecommitdiff
path: root/lib/stitch_plan/stitch_plan.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-07-13 19:51:25 -0400
committerGitHub <noreply@github.com>2018-07-13 19:51:25 -0400
commitc6ebfea5425229f19e12d40391ff1d6253ea4c55 (patch)
tree58a53c0730c516b9ce53ec873fd23e9463cb631f /lib/stitch_plan/stitch_plan.py
parent67342608b0d059bc3ec79001e62d0bc0cdb251d4 (diff)
parent6caba7b839e9f4e90ab9f3ff1110c8759e30337d (diff)
Merge pull request #224 from inkstitch/lexelby-trim-stop-commands
trim and stop commands
Diffstat (limited to 'lib/stitch_plan/stitch_plan.py')
-rw-r--r--lib/stitch_plan/stitch_plan.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/stitch_plan/stitch_plan.py b/lib/stitch_plan/stitch_plan.py
index 93bcd195..742916f0 100644
--- a/lib/stitch_plan/stitch_plan.py
+++ b/lib/stitch_plan/stitch_plan.py
@@ -183,10 +183,7 @@ class ColorBlock(object):
def num_stops(self):
"""Number of pauses in this color block."""
- # Stops are encoded using two STOP stitches each. See the comment in
- # stop.py for an explanation.
-
- return sum(1 for stitch in self if stitch.stop) / 2
+ return sum(1 for stitch in self if stitch.stop)
@property
def num_trims(self):