Skip to content

Commit

Permalink
added kwargs for convolve
Browse files Browse the repository at this point in the history
  • Loading branch information
maxecharles committed Oct 14, 2024
1 parent 5089344 commit cb89a83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dLux/psfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def downsample(self: PSF, n: int) -> PSF:
"""
return self.set("data", dlu.downsample(self.data, n, mean=False))

def convolve(self: PSF, other: Array) -> PSF:
def convolve(self: PSF, other: Array, **kwargs) -> PSF:
"""
Convolves the psf with some input array.
Expand All @@ -93,7 +93,9 @@ def convolve(self: PSF, other: Array) -> PSF:
psf : PSF
The convolved psf.
"""
return self.set("data", convolve(self.data, other, mode="same"))
return self.set(
"data", convolve(self.data, other, mode="same", **kwargs)
)

def rotate(self: PSF, angle: float, order: int = 1) -> PSF:
"""
Expand Down

0 comments on commit cb89a83

Please sign in to comment.