Fix convolve kernel check
@@ -604,8 +604,9 @@ class WcsNDMap(WcsMap):
convolved_data = np.empty(geom.data_shape, dtype=np.float32)
- shape_axes_kernel = kernel.shape[geom._slice_non_spatial_axes]
+ shape_axes_kernel = kernel.shape[slice(0, -2)]
+ if len(shape_axes_kernel) > 0:
if not geom.shape_axes == shape_axes_kernel:
raise ValueError(f"Incompatible shape between data {geom.shape_axes} and kernel {shape_axes_kernel}")
