'Check whether convolve_fft works with masked arrays.'

def test_masked_array(self):

    array = np.array([1.0, np.nan, 3.0], dtype=u'float64')
    kernel = np.array([1, 1, 1])
    masked_array = np.ma.masked_array(array, mask=[0, 1, 0])
    result = convolve_fft(masked_array, kernel, boundary=u'fill', fill_value=np.nan)
    assert_allclose(result, [1, 2, 3], atol=1e-14)
    array = np.array([1.0, np.nan, 3.0], dtype=u'float64')
    kernel = np.array([1, 1, 1])
    masked_array = np.ma.masked_array(array, mask=[0, 1, 0])
    result = convolve_fft(masked_array, kernel, boundary=u'fill', fill_value=np.nan)
    assert_allclose(result, [1, 2, 3], atol=1e-14)
