Skip to content

Commit

Permalink
replace eigvals
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Sep 19, 2024
1 parent 4ae9d10 commit 49a3714
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prody/utilities/eigtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def _eigh(M, eigvals=None, turbo=True):
if not issparse(M):
try:
values, vectors = linalg.eigh(M, turbo=turbo, eigvals=eigvals)
except AttributeError:
except TypeError:
if turbo:
values, vectors = linalg.eigh(M, driver='evd', eigvals=eigvals)
values, vectors = linalg.eigh(M, driver='evd', subset_by_index=eigvals)
else:
values, vectors = linalg.eigh(M, eigvals=eigvals)
values, vectors = linalg.eigh(M, subset_by_index=eigvals)
else:
try:
from scipy.sparse import linalg as scipy_sparse_la
Expand Down

0 comments on commit 49a3714

Please sign in to comment.