Skip to content

Commit

Permalink
fix the warning when doing ccf
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Feb 12, 2024
1 parent f766bd0 commit 288a1ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/rvspecfit/make_ccf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 288a1ef

Please sign in to comment.