Skip to content

Commit

Permalink
test: check non-boundary voxels don't merge
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Apr 5, 2024
1 parent e304379 commit 214d721
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions automated_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,3 +1188,14 @@ def test_periodic_boundary_6():
assert N == 1


labels[:,:,:] = 0
labels[1,:,:] = 1
labels[-2,:,:] = 1

out, N = cc3d.connected_components(labels, connectivity=6, return_N=True, periodic_boundary=False)
assert N == 2

out, N = cc3d.connected_components(labels, connectivity=6, return_N=True, periodic_boundary=True)
assert N == 2


0 comments on commit 214d721

Please sign in to comment.