Skip to content
Snippets Groups Projects
Commit 2256ec8b authored by Shio Sakon's avatar Shio Sakon
Browse files

add scipy.linalg.svd for faster SVD calculations

parent 50d4de63
No related branches found
No related tags found
1 merge request!182Add scipy.linalg.svd for faster SVD calculations
Pipeline #385653 passed with warnings
......@@ -64,7 +64,7 @@ import lalsimulation as lalsim
from gstlal import spawaveform
from scipy.linalg import svd as scipy_svd
from gstlal import chirptime
from gstlal import kernels
......@@ -506,7 +506,11 @@ def decompose_templates(template_bank, tolerance, identity = False):
# S.V.D.
#
U, s, Vh = spawaveform.svd(template_bank.T,mod=True,inplace=True)
try:
U, s, Vh = scipy_svd(template_bank.T)
except numpy.linalg.LinAlgError as e:
U, s, Vh = spawaveform.svd(template_bank.T,mod=True,inplace=True)
print ("Falling back on spawaveform", e, file=sys.stderr)
#
# determine component count
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment