コード例 #1
0
ファイル: test_graph.py プロジェクト: keliankaz/landlab
def test_links_at_patch():
    """Test getting links that bound patches from a voronoi."""
    converter = VoronoiConverter(Voronoi(POINTS))

    links_at_patch = converter.get_links_at_patch()

    assert links_at_patch.shape == (2, 6)
    assert np.all(links_at_patch >= 0)
    assert np.all(links_at_patch < 11)
コード例 #2
0
ファイル: test_graph.py プロジェクト: Carralex/landlab
def test_links_at_patch():
    """Test getting links that bound patches from a voronoi."""
    converter = VoronoiConverter(Voronoi(POINTS))

    links_at_patch = converter.get_links_at_patch()

    assert_tuple_equal(links_at_patch.shape, (2, 6))
    assert_true(np.all(links_at_patch >= 0))
    assert_true(np.all(links_at_patch < 11))
コード例 #3
0
def test_links_at_patch():
    """Test getting links that bound patches from a voronoi."""
    converter = VoronoiConverter(Voronoi(POINTS))

    links_at_patch = converter.get_links_at_patch()

    assert_tuple_equal(links_at_patch.shape, (2, 6))
    assert_true(np.all(links_at_patch >= 0))
    assert_true(np.all(links_at_patch < 11))
コード例 #4
0
ファイル: test_graph.py プロジェクト: Glader011235/Landlab
def test_links_at_patch():
    """Test getting links that bound patches from a voronoi."""
    converter = VoronoiConverter(Voronoi(POINTS))

    links_at_patch = converter.get_links_at_patch()

    assert links_at_patch.shape == (2, 6)
    assert np.all(links_at_patch >= 0)
    assert np.all(links_at_patch < 11)