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

    patches_at_link = converter.get_patches_at_link()

    assert patches_at_link.shape == (11, 2)
    for patches in patches_at_link:
        assert patches[0] != -1 or patches[1] != -1
コード例 #2
0
ファイル: test_graph.py プロジェクト: Carralex/landlab
def test_patches_at_link():
    """Test getting link patches."""
    converter = VoronoiConverter(Voronoi(POINTS))

    patches_at_link = converter.get_patches_at_link()

    assert_tuple_equal(patches_at_link.shape, (11, 2))
    for patches in patches_at_link:
        assert_true(patches[0] != -1 or patches[1] != -1)
コード例 #3
0
def test_patches_at_link():
    """Test getting link patches."""
    converter = VoronoiConverter(Voronoi(POINTS))

    patches_at_link = converter.get_patches_at_link()

    assert_tuple_equal(patches_at_link.shape, (11, 2))
    for patches in patches_at_link:
        assert_true(patches[0] != -1 or patches[1] != -1)
コード例 #4
0
ファイル: test_graph.py プロジェクト: Glader011235/Landlab
def test_patches_at_link():
    """Test getting link patches."""
    converter = VoronoiConverter(Voronoi(POINTS))

    patches_at_link = converter.get_patches_at_link()

    assert patches_at_link.shape == (11, 2)
    for patches in patches_at_link:
        assert patches[0] != -1 or patches[1] != -1