From 5e9ff3cfc7f01641f6ebefa36cab26fd4ec5433f Mon Sep 17 00:00:00 2001 From: Luis Fabregas Date: Mon, 9 Nov 2020 17:59:08 +0100 Subject: [PATCH] regparamrange: fixed behaviour of exception handling, now working properly (#42) --- deerlab/regparamrange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deerlab/regparamrange.py b/deerlab/regparamrange.py index ba141f82f..c981ae758 100644 --- a/deerlab/regparamrange.py +++ b/deerlab/regparamrange.py @@ -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)