Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Jul 26, 2021
1 parent 9bb7394 commit 993dbaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pysme/continuum_and_radial_velocity.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def apply_continuum(wave, smod, cwave, cscale, cscale_type, segments):
return smod
for il in segments:
if cscale[il] is not None and not np.all(cscale[il] == 0):
if cscale_type in ["spline"]:
if cscale_type in ["spline", "spline+mask"]:
if len(cscale[il]) != len(smod[il]):
cs = np.interp(wave[il], cwave[il], cscale[il])
else:
Expand Down Expand Up @@ -380,7 +380,7 @@ def func(rv):

def null_result(nseg, ndeg=0, ctype=None):
vrad, vrad_unc = np.zeros(nseg), np.zeros((nseg, 2))
if ctype in ["spline"]:
if ctype in ["spline", "spline+mask"]:
cscale = [np.ones(ndeg[i]) for i in range(nseg)]
cscale = Iliffe_vector(values=cscale)
cscale_unc = [np.zeros(ndeg[i]) for i in range(nseg)]
Expand Down

0 comments on commit 993dbaf

Please sign in to comment.