Ejemplo n.º 1
0
def test_find_neighbor_pixels():
    x, y = np.meshgrid(np.linspace(-5, 5, 5), np.linspace(-5, 5, 5))
    neigh = CD.find_neighbor_pixels(x.ravel(), y.ravel(), rad=3.1)
    assert (set(neigh[11]) == set([16, 6, 10, 12]))
Ejemplo n.º 2
0
def test_find_neighbor_pixels():
    x, y = np.meshgrid(np.linspace(-5, 5, 5), np.linspace(-5, 5, 5))
    neigh = CD.find_neighbor_pixels(x.ravel(), y.ravel(), rad=3.1)
    assert(set(neigh[11]) == set([16, 6, 10, 12]))