diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-10-15 07:18:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-15 07:18:26 +0200 |
| commit | 1ff677722844e311f64d10079ff96b725b00676e (patch) | |
| tree | f49337585180c7afae0c66d6591702d2fbc7f56b /lib/stitch_plan/stitch_plan.py | |
| parent | 45e430bb60e2a952211a3526fabb5e11badfcce3 (diff) | |
Add element info extension (#2544)
Diffstat (limited to 'lib/stitch_plan/stitch_plan.py')
| -rw-r--r-- | lib/stitch_plan/stitch_plan.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stitch_plan/stitch_plan.py b/lib/stitch_plan/stitch_plan.py index 68d52699..8067749a 100644 --- a/lib/stitch_plan/stitch_plan.py +++ b/lib/stitch_plan/stitch_plan.py @@ -173,6 +173,10 @@ class StitchPlan(object): return sum(block.num_stitches for block in self) @property + def num_jumps(self): + return sum(block.num_jumps for block in self) + + @property def bounding_box(self): color_block_bounding_boxes = [cb.bounding_box for cb in self] minx = min(bb[0] for bb in color_block_bounding_boxes) |
