Skip to content

Commit

Permalink
fix #2427
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Dec 13, 2024
1 parent 3c6b692 commit e12795b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/desispec/scripts/trace_shifts.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def fit_trace_shifts(image, args):
log.info("wavelength calib, internal={}, sky={} , arc_lamps={}".format(internal_wavelength_calib,args.sky,args.arc_lamps))

spectrum_filename = args.spectrum
continuum_subtract = False
if args.sky :
continuum_subtract = True
srch_file = "data/spec-sky.dat"
Expand All @@ -163,7 +164,6 @@ def fit_trace_shifts(image, args):
raise RuntimeError("Cannot find sky spectrum file {:s}".format(srch_file))
spectrum_filename = resources.files('desispec').joinpath(srch_file)
elif args.arc_lamps :
continuum_subtract = False
srch_file = "data/spec-arc-lamps.dat"
if not resources.files('desispec').joinpath(srch_file).is_file():
log.error("Cannot find arc lamps spectrum file {:s}".format(srch_file))
Expand Down

0 comments on commit e12795b

Please sign in to comment.