From a3391641e948f7905e0a531c1eb94603db9695f7 Mon Sep 17 00:00:00 2001 From: Ian Sullivan Date: Fri, 16 May 2025 14:42:46 -0700 Subject: [PATCH] Use consistent bbox for DcrModel --- python/lsst/ip/diffim/dcrModel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/lsst/ip/diffim/dcrModel.py b/python/lsst/ip/diffim/dcrModel.py index 6a953af27..ea47a9a96 100644 --- a/python/lsst/ip/diffim/dcrModel.py +++ b/python/lsst/ip/diffim/dcrModel.py @@ -403,6 +403,8 @@ def buildMatchedTemplate(self, exposure=None, order=3, raise ValueError("Either exposure or visitInfo must be set.") if bbox is None: bbox = self.bbox + else: + bbox = bbox.clippedTo(self.bbox) dcrShift = calculateDcr(visitInfo, self.wcs, self.effectiveWavelength, self.bandwidth, len(self), splitSubfilters=splitSubfilters, bbox=bbox) templateImage = afwImage.ImageF(bbox)