code: def convolve(self, array):
          
          if self.shape[0] % 2 == 0 or self.shape[1] % 2 == 0:
              raise exc.KernelException("PSF Kernel must be odd")
  
          return scipy.signal.convolve2d(array, self, mode='same')
docs: Convolve an array with this PSF
  
          Parameters
          ----------
          image : ndarray
              An array representing the image the PSF is convolved with.
  
          Returns
          -------
          convolved_image : ndarray
              An array representing the image after convolution.
  
          Raises
          ------
          KernelException if either PSF psf dimension is odd