diff --git a/tangostationcontrol/tangostationcontrol/test/beam/test_delays.py b/tangostationcontrol/tangostationcontrol/test/beam/test_delays.py index 45412bd7ef08b4c343272f1b8f7cc81656a33099..e5fb81e0839783eb7ec2f8949b64e991b7829a67 100644 --- a/tangostationcontrol/tangostationcontrol/test/beam/test_delays.py +++ b/tangostationcontrol/tangostationcontrol/test/beam/test_delays.py @@ -9,7 +9,7 @@ from tangostationcontrol.test import base -class TestAttributeTypes(base.TestCase): +class TestDelays(base.TestCase): def test_init(self): """ Fail condition is simply the object creation failing @@ -33,7 +33,7 @@ class TestAttributeTypes(base.TestCase): # compute the delays for an antennas w.r.t. the reference position # # obtain the direction vector for a specific pointing - direction = "SUN", "0deg", "0deg" + direction = "J2000", "0deg", "0deg" # calculate the delays based on the set reference position, the set time and now the set direction and antenna positions. pointing = d.measure.direction(*direction) @@ -47,7 +47,7 @@ class TestAttributeTypes(base.TestCase): d = delay_calculator(reference_itrf) # set the antenna position identical to the reference position - antenna_itrf = [reference_itrf] # CS001LBA, in ITRF2005 epoch 2012.5 + antenna_itrf = [[reference_itrf[0], reference_itrf[1], reference_itrf[2]]] # CS001LBA, in ITRF2005 epoch 2012.5 # # set the timestamp to solve for timestamp = datetime.datetime(2000, 1, 1, 0, 0, 0) @@ -61,7 +61,7 @@ class TestAttributeTypes(base.TestCase): # calculate the delays based on the set reference position, the set time and now the set direction and antenna positions. delays = d.convert(direction, antenna_itrf) - self.self.assertListEqual(delays == [0.0]) + self.assertListEqual(delays, [0.0], msg=f"delays = {delays}") def test_light_second_delay(self): """