def gridTest(N=2, ProfileON=False):
    ' Method to test gridding.'
    print(('N=%d' % N))
    x = (np.random.random((N, 1)) * 100)
    y = (np.random.random((N, 1)) * 100)
    z = np.exp((np.sqrt((((x - 50.0) ** 2) + ((y - 50.0) ** 2))) / 50))
    G = vgrid(1, 1, 'mean')
    if profileON:
        print('Profiling on.')
        lp = LineProfiler()
        GAddProfiled = lp(G.add)
        lp.add_function(G.mean)
        GAddProfiled(x, y, z, 1)
        return (G, lp)
    else:
        G.add(x, y, z, 1)
        return G
Method to test gridding.
def gridTest(N=2, ProfileON=False):
    ' '
    print(('N=%d' % N))
    x = (np.random.random((N, 1)) * 100)
    y = (np.random.random((N, 1)) * 100)
    z = np.exp((np.sqrt((((x - 50.0) ** 2) + ((y - 50.0) ** 2))) / 50))
    G = vgrid(1, 1, 'mean')
    if profileON:
        print('Profiling on.')
        lp = LineProfiler()
        GAddProfiled = lp(G.add)
        lp.add_function(G.mean)
        GAddProfiled(x, y, z, 1)
        return (G, lp)
    else:
        G.add(x, y, z, 1)
        return G