Skip to content

Commit

Permalink
fix: floating point error in test
Browse files Browse the repository at this point in the history
  • Loading branch information
William Silversmith committed Jun 22, 2024
1 parent a57edbb commit d2340fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automated_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_spherical_dilate():
assert np.all(res == False)

labels[5,5,5] = True
radius = 5 * np.sqrt(3)
radius = 5 * np.sqrt(3) + 0.000001
res = fastmorph.spherical_dilate(labels, radius=radius)
assert np.all(res == True)

Expand Down

0 comments on commit d2340fd

Please sign in to comment.