Skip to content

Commit

Permalink
Properly convolve small sources
Browse files Browse the repository at this point in the history
  • Loading branch information
fred3m committed Nov 28, 2023
1 parent 13f254e commit c5098c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/scarlet/lite/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c5098c1

Please sign in to comment.