From c5098c179d78a3624c3826c49f7bc066ff27c903 Mon Sep 17 00:00:00 2001 From: fred3m Date: Mon, 27 Nov 2023 22:15:43 -0800 Subject: [PATCH] Properly convolve small sources --- python/lsst/scarlet/lite/observation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lsst/scarlet/lite/observation.py b/python/lsst/scarlet/lite/observation.py index 09c967ab..86b04851 100644 --- a/python/lsst/scarlet/lite/observation.py +++ b/python/lsst/scarlet/lite/observation.py @@ -326,7 +326,7 @@ def convolve(self, image: Image, mode: str | None = None, grad: bool = False) -> newshape[2] += kernel.image.shape[2] - image.shape[2] _image = _pad(_image, newshape) result = convolve(_image, kernel.image, self.convolution_bounds) - result = centered(_image, image.data.shape) + result = centered(result, image.data.shape) else: result = convolve(image.data, kernel.image, self.convolution_bounds) else: