Skip to content

Commit

Permalink
Merge pull request scikit-image#5017 from hmaarrfk/fix_np_pad_test
Browse files Browse the repository at this point in the history
Fix usage of numpy.pad for old versions of numpy
  • Loading branch information
Alexandre de Siqueira authored Oct 12, 2020
2 parents 580629f + f0abc1d commit 5277aee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions skimage/feature/tests/test_corner.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ def test_structure_tensor_eigenvalues():


def test_structure_tensor_eigenvalues_3d():
image = np.pad(cube(9), 5) * 1000
boundary = (np.pad(cube(9), 5) - np.pad(cube(7), 6)).astype(bool)
image = np.pad(cube(9), 5, mode='constant') * 1000
boundary = (np.pad(cube(9), 5, mode='constant')
- np.pad(cube(7), 6, mode='constant')).astype(bool)
A_elems = structure_tensor(image, sigma=0.1)
e0, e1, e2 = structure_tensor_eigenvalues(A_elems)
# e0 should detect facets
Expand Down

0 comments on commit 5277aee

Please sign in to comment.