Skip to content
Snippets Groups Projects
Commit a61bf005 authored by Taya Snijder's avatar Taya Snijder
Browse files

fied wrong speed of light and added annotation to function

parent bc19c3ad
No related branches found
No related tags found
1 merge request!229Resolve L2SS-554 "Delay pointing unit tests"
......@@ -64,12 +64,16 @@ class TestAttributeTypes(base.TestCase):
self.assertTrue(delays == [0.0])
def test_light_second_delay(self):
"""
This test measures the delay between 2 positions 1 light second apart.
"""
# # create a frame tied to the reference position
reference_itrf = [3826577.066, 461022.948, 5064892.786] # CS002LBA, in ITRF2005 epoch 2012.5
d = delay_calculator(reference_itrf)
# set the antenna position identical to the reference position
speed_of_light = 304389329.123#299792458.0
speed_of_light = 299792458.0
antenna_itrf = [[reference_itrf[0], reference_itrf[1] - speed_of_light, reference_itrf[2]]] # CS001LBA, in ITRF2005 epoch 2012.5
# # set the timestamp to solve for
......@@ -85,5 +89,5 @@ class TestAttributeTypes(base.TestCase):
delays = d.convert(direction, antenna_itrf)
self.assertTrue(0.98 <= delays[0] <= 1.02)
self.assertTrue(0.98 <= delays[0] <= 1.02, f"delays[0] = {delays[0]}")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment