From e12795be841f23bd36e16371f1f1059bd9d22c28 Mon Sep 17 00:00:00 2001 From: "Sergey E. Koposov" Date: Fri, 13 Dec 2024 09:06:12 +0000 Subject: [PATCH] fix #2427 --- py/desispec/scripts/trace_shifts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/desispec/scripts/trace_shifts.py b/py/desispec/scripts/trace_shifts.py index 71336ea37..5ccceaa65 100644 --- a/py/desispec/scripts/trace_shifts.py +++ b/py/desispec/scripts/trace_shifts.py @@ -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" @@ -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))