From cf00683277a61145d6fb28c35f8136cd533f230f Mon Sep 17 00:00:00 2001 From: "Sergey E. Koposov" Date: Sun, 17 Nov 2024 20:07:39 +0000 Subject: [PATCH] use automatic convolution method (that's faster) --- py/rvspecfit/spec_fit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/rvspecfit/spec_fit.py b/py/rvspecfit/spec_fit.py index 3b3c28c..ca86db4 100644 --- a/py/rvspecfit/spec_fit.py +++ b/py/rvspecfit/spec_fit.py @@ -437,7 +437,7 @@ def convolve_vsini(lam_templ, templ, vsini): # ensure that the lambda is spaced logarithmically assert (np.allclose(lam_templ[1] / lam_templ[0], lam_templ[-1] / lam_templ[-2])) - templ1 = scipy.signal.fftconvolve(templ, kernel, mode='same') + templ1 = scipy.signal.convolve(templ, kernel, mode='same', method='auto') return templ1