We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b31c0fc commit 80fc8e8Copy full SHA for 80fc8e8
1 file changed
autoarray/dataset/imaging/dataset.py
@@ -166,8 +166,9 @@ def __init__(
166
167
self.psf = psf
168
169
- if psf.mask.shape[0] % 2 == 0 or psf.mask.shape[1] % 2 == 0:
170
- raise exc.KernelException("Kernel2D Kernel2D must be odd")
+ if psf is not None:
+ if psf.mask.shape[0] % 2 == 0 or psf.mask.shape[1] % 2 == 0:
171
+ raise exc.KernelException("Kernel2D Kernel2D must be odd")
172
173
@cached_property
174
def grids(self):
0 commit comments