Skip to content

Commit

Permalink
fix spurious warning
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Nov 15, 2024
1 parent 1e44110 commit 447613e
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 @@ -205,8 +205,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 (np.log(lammodel[0]) <= logl[0] <= np.log(lammodel[-1]))) or (
not (np.log(lammodel[0]) <= logl[-1] <= np.log(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 447613e

Please sign in to comment.