def test_getter_radius(): value = 1 coords = Coordinates() coords.z = 0 coords.y = 1 coords.x = 0 npt.assert_allclose(coords.radius, value)
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)
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)
def test_setter_x(): value = np.array([1.0, 1], dtype=np.double) coords = Coordinates() coords.x = value npt.assert_allclose(value, coords._x)