Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Nov 16, 2022
1 parent f3af142 commit 26982a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def test_hessian_matrix_eigvals_3d(im3d, dtype):
assert np.min(response2) < 0
assert np.max(response0) > 0


def _reference_eigvals_computation(S_elems):
"""Legacy eigenvalue implementation based on cp.linalg.eigvalsh."""
matrices = _symmetric_image(S_elems)
Expand Down
4 changes: 2 additions & 2 deletions python/cucim/src/cucim/skimage/filters/ridges.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,8 @@ def frangi(image, sigmas=range(1, 10, 2), scale_range=None,
H = hessian_matrix(image, sigma, mode=mode, cval=cval,
use_gaussian_derivatives=True)

# using _symmetric_compute_eigenvalues rather than hessian_matrix_eigvals
# so we can directly sort by ascending magnitude
# Use _symmetric_compute_eigenvalues rather than
# hessian_matrix_eigvals so we can directly sort by ascending magnitude
eigvals = _symmetric_compute_eigenvalues(
H, sort='ascending', abs_sort=True
)
Expand Down

0 comments on commit 26982a2

Please sign in to comment.