diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-07-09 20:59:46 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-07-12 20:13:46 -0400 |
| commit | 73565ae691b409af9190a02485e51ed590510384 (patch) | |
| tree | ae567c391e5833e6418e20e72d68e64ee14c80e8 /lib/stitch_plan/stitch_plan.py | |
| parent | 942afda383ea6444ba9460054e04ad5e0cc5128e (diff) | |
fix stop count
Diffstat (limited to 'lib/stitch_plan/stitch_plan.py')
| -rw-r--r-- | lib/stitch_plan/stitch_plan.py | 5 |
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): |
