Example #1
0
def test_getter_azi():
    azi = np.pi / 2
    coords = Coordinates()
    coords.z = 0
    coords.y = 1
    coords.x = 0
    npt.assert_allclose(coords.azimuth, azi)
Example #2
0
def test_getter_ele():
    value = np.pi / 2
    coords = Coordinates()
    coords.z = 0
    coords.y = 0
    coords.x = 1
    npt.assert_allclose(coords.elevation, value)
Example #3
0
def test_getter_radius():
    value = 1
    coords = Coordinates()
    coords.z = 0
    coords.y = 1
    coords.x = 0
    npt.assert_allclose(coords.radius, value)
Example #4
0
def test_setter_y():
    value = np.array([1.0, 1], dtype=np.double)
    coords = Coordinates()
    coords.y = value
    npt.assert_allclose(value, coords._y)