Skip to content

Commit

Permalink
regparamrange: fixed behaviour of exception handling, now working pro…
Browse files Browse the repository at this point in the history
…perly (#42)
  • Loading branch information
luisfabib committed Nov 9, 2020
1 parent f80c953 commit 5e9ff3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deerlab/regparamrange.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def regparamrange(K,L,noiselvl=0,logres=0.1):
try:
# Get generalized singular values of K and L
singularValues = gsvd(K,L)
except ValueError as e:
except:
# Otherwise just estimate via the SVD from the dipolar kernel to avoid crash
_,singularValues,_ = svd(K)

Expand Down

0 comments on commit 5e9ff3c

Please sign in to comment.