We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 042d686 commit df1f2d5Copy full SHA for df1f2d5
autoarray/operators/convolver.py
@@ -244,8 +244,13 @@ def use_fft(self):
244
def normalized(self) -> "Convolver":
245
"""
246
Normalize the Convolver such that its data_vector values sum to unity.
247
+
248
+ A copy of the kernel is used to avoid mutating the original kernel instance,
249
+ and no existing state is reused so that any cached FFTs are recomputed for
250
+ the normalized kernel.
251
- return Convolver(kernel=self.kernel, state=self._state, normalize=True)
252
+ kernel_copy = self.kernel.copy()
253
+ return Convolver(kernel=kernel_copy, state=None, normalize=True)
254
255
@classmethod
256
def no_blur(cls, pixel_scales):
0 commit comments