diff --git a/tangostationcontrol/tangostationcontrol/devices/beam.py b/tangostationcontrol/tangostationcontrol/devices/beam.py index a44114c2b968c4bb3bf317bc96f9af4b9fad6cac..1d879d0eb8facfa3d56ee2aebdc6b2b359b370ca 100644 --- a/tangostationcontrol/tangostationcontrol/devices/beam.py +++ b/tangostationcontrol/tangostationcontrol/devices/beam.py @@ -128,9 +128,9 @@ class Beam(lofar_device): # Only the entries within the mask have been updated mask = self.recv_proxy.Ant_mask_RW.flatten() for rcu in range(96): - if mask[tile]: - self._hbat_pointing_direction[tile] = pointing_direction[tile] - self._hbat_pointing_timestamp[tile] = timestamp + if mask[rcu]: + self._hbat_pointing_direction[rcu] = pointing_direction[rcu] + self._hbat_pointing_timestamp[rcu] = timestamp # -------- # Commands