From 288a1efedec89909cf5a82726da209cd92357eec Mon Sep 17 00:00:00 2001 From: "Sergey E. Koposov" Date: Mon, 12 Feb 2024 18:07:28 +0000 Subject: [PATCH] fix the warning when doing ccf --- py/rvspecfit/make_ccf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/rvspecfit/make_ccf.py b/py/rvspecfit/make_ccf.py index f786340..b0f199b 100644 --- a/py/rvspecfit/make_ccf.py +++ b/py/rvspecfit/make_ccf.py @@ -177,8 +177,8 @@ def preprocess_model(logl, lammodel, model0, vsini=None, ccfconf=None): cont = np.maximum(cont, 1e-2 * np.median(cont)) else: cont = 1 - if (not (lammodel[0] < logl[0] < lammodel[-1])) or ( - not (lammodel[0] < logl[-1] < lammodel[-1])): + if (not (lammodel[0] <= logl[0] <= lammodel[-1])) or ( + not (lammodel[0] <= logl[-1] <= lammodel[-1])): logging.warning('''The required wavelength range is bigger than the ''' '''template wavelengths''') c_model = scipy.interpolate.interp1d(np.log(lammodel),