Ejemplo n.º 1
0
def test_geometry_zero_fov():
    with pytest.raises(ValueError):
        Geometry.make([0.0, 2.0, 1.0], image_corners, distances)
Ejemplo n.º 2
0
def test_geometry_neg_distances(fov, image_corners):
    with pytest.raises(ValueError):
        Geometry.make(fov, image_corners, [3.0, -4.3, 0.0])
Ejemplo n.º 3
0
def test_geometry_neg_fov(image_corners, distances):
    with pytest.raises(ValueError):
        Geometry.make([-3.0, 2.0, 1.0], image_corners, distances)
Ejemplo n.º 4
0
def test_identical_image_corners(fov, distances):
    image_corners = [[-0.24, 0.34], [0.1, 0.4], [-0.14, -0.2], [-0.14, -0.2]]
    with pytest.raises(ValueError):
        Geometry.make(fov, image_corners, distances)