Skip to content
Snippets Groups Projects
Commit fb88e531 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-937: fix bug

parent 72380fca
Branches
Tags
1 merge request!424Resolve L2SS-937 "Restore recv cluster integration test"
......@@ -236,9 +236,7 @@
"3826577.066","461022.948","5064892.786",
"3826577.066","461022.948","5064892.786",
"3826577.066","461022.948","5064892.786",
"3826577.066",
"461022.948",
"5064892.786"
"3826577.066","461022.948","5064892.786"
],
"HBAT_antenna_itrf_offsets": [
"-1.847","-1.180"," 1.493",
......
......@@ -49,17 +49,19 @@ class TestRecvCluster(base.IntegrationTestCase):
proxy.set_defaults()
self.assertTrue(proxy.state() is DevState.ON)
for proxy in antenna_field_proxies:
for n in range(1, 5):
proxy = antenna_field_proxies[n-1]
# setup AntennaField
NR_TILES = 48
control_mapping = [[1,i] for i in range(NR_TILES)]
antenna_qualities = numpy.array([AntennaQuality.OK] * 96)
antenna_use = numpy.array([AntennaUse.AUTO] * 96)
proxy.put_property({"RECV_devices": [f"STAT/RECV/{i}"],
proxy.put_property({"RECV_devices": [f"STAT/RECV/{n}"],
"Control_to_RECV_mapping": numpy.array(control_mapping).flatten(),
'Antenna_Quality': antenna_qualities, 'Antenna_Use': antenna_use})
proxy.off()
proxy.boot()
self.assertEqual(NR_TILES, proxy.nr_antennas_R)
self.assertTrue(proxy.state() is DevState.ON)
for proxy in beam_proxies:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment