From 630f2bd35054784fcb06d281cdcfe4a4fa6629c6 Mon Sep 17 00:00:00 2001 From: Robert Lupton the Good Date: Thu, 4 Mar 2021 17:51:36 -0500 Subject: [PATCH] Obey config.doSlitOffsets --- python/pfs/drp/stella/fitDifferentialDetectorMap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/pfs/drp/stella/fitDifferentialDetectorMap.py b/python/pfs/drp/stella/fitDifferentialDetectorMap.py index ed9332d41..58c22f5f1 100644 --- a/python/pfs/drp/stella/fitDifferentialDetectorMap.py +++ b/python/pfs/drp/stella/fitDifferentialDetectorMap.py @@ -167,7 +167,8 @@ def run(self, dataId, bbox, lines, visitInfo, metadata=None, base=None): fiberCenter = self.config.fiberCenter[spectrograph] if doFitHighCcd else 0 if base is None: base = self.getBaseDetectorMap(dataId) - self.measureSlitOffsets(base, lines) + if self.config.doSlitOffsets: + self.measureSlitOffsets(base, lines) residuals = self.calculateBaseResiduals(base, lines) results = self.fitGlobalDetectorModel(bbox, residuals, doFitHighCcd, fiberCenter, seed=visitInfo.getExposureId())