Skip to content

Commit

Permalink
fix: floating point error downstream of center calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Mar 13, 2024
1 parent 4e038de commit 3726376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion igneous/tasks/skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def repair_cross_sectional_area_contacts(self, vol, bbox, skeletons):
pts_bbx = Bbox.from_points(pts)

pts_bbx_vol = pts_bbx + bbox.minpt
center = pts_bbx_vol.center()
center = pts_bbx_vol.center().astype(int)
skel_bbx = Bbox(center, center+1)
skel_bbx.grow(delta + shape // 2)

Expand Down

0 comments on commit 3726376

Please sign in to comment.