'Filter kernel array setter'

@array.setter
def array(self, array):

    if isinstance(array, np.ndarray):
        self._array = array.astype(np.float64)
    elif isinstance(array, list):
        self._array = np.array(array, dtype=np.float64)
    else:
        raise TypeError(u'Must    be    list    or    array.')
    odd = all((((axes_size % 2) != 0) for axes_size in self.shape))
    if (not odd):
        raise KernelSizeError(u'Kernel    size    must    be    odd    in    all    axes.')
    ones = (self._array == 1.0)
    zeros = (self._array == 0)
    self._is_bool = bool(np.all(np.logical_or(ones, zeros)))
    self._truncation = 0.0
