From c9c6ae2ed0772635d39a8e5a2ef9b08c0925562a Mon Sep 17 00:00:00 2001 From: Robert Lupton the Good Date: Thu, 25 Feb 2021 22:10:10 -0500 Subject: [PATCH] The fix I didn't like on the ticket --- python/pfs/drp/stella/mergeArms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/pfs/drp/stella/mergeArms.py b/python/pfs/drp/stella/mergeArms.py index 686f5c9b6..05c280a11 100644 --- a/python/pfs/drp/stella/mergeArms.py +++ b/python/pfs/drp/stella/mergeArms.py @@ -230,7 +230,8 @@ def mergeLsfs(self, lsfList, spectraList): warpedLsf = {} for ii in range(len(spectra)): ff = spectra.fiberId[ii] - warpedLsf[ff] = warpLsf(lsf[ff], spectra.wavelength[ii], wavelength) + warpedLsf[ff] = warpLsf(lsf[ff], spectra.wavelength[ii], wavelength) if ff in lsf \ + else None warpedLsfList.append(warpedLsf) return {ff: coaddLsf([ww[ff] for ww in warpedLsfList]) for ff in fiberId}