def test_distance_neighbor_dist1(): gs = FlatStructure((100, 100), (1, 1)) D = gs.get_distances() assert_allclose(D, 0)
def test_distance_neighbor_dist3(): gs = FlatStructure((100, 100), (3, 3)) D = gs.get_distances() assert_allclose(np.max(D), np.sqrt(2))