Skip to content

Commit

Permalink
Bugfix: wavelengths smaller than !QSFIT_OPT.min_wavelength are now ig…
Browse files Browse the repository at this point in the history
…nored
  • Loading branch information
gcalderone committed Mar 16, 2020
1 parent b1160f9 commit d151191
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions IDL/qsfit/qsfit.pro
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,11 @@ FUNCTION qsfit_input, x, y, e, TYPE=type, ID=id, Z=z, EBV=ebv
IF (z LT 0) THEN MESSAGE, 'Redshift is negative: ' + gn2s(z)
IF (gn(good) EQ 0) THEN good = REPLICATE(1, gn(xx))

IF (gsearch(xx LE !QSFIT_OPT.min_wavelength, i)) THEN BEGIN
good[i] = 0
IF (gsearch(xx GE !QSFIT_OPT.min_wavelength * (1+z), i)) THEN BEGIN
xx = xx[i]
yy = yy[i]
ee = ee[i]
good = good[i]
ENDIF

file = STRSPLIT(file, PATH_SEP(), /extract)
Expand Down

0 comments on commit d151191

Please sign in to comment.