From fbef5787b3db4809948b9c3bfce627d7edaf070d Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 25 Jan 2022 14:28:07 +0100 Subject: [PATCH] L2SS-380: improved indenting --- tangostationcontrol/tangostationcontrol/devices/beam.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tangostationcontrol/tangostationcontrol/devices/beam.py b/tangostationcontrol/tangostationcontrol/devices/beam.py index 8deea16d8..a5ab7f7a6 100644 --- a/tangostationcontrol/tangostationcontrol/devices/beam.py +++ b/tangostationcontrol/tangostationcontrol/devices/beam.py @@ -128,13 +128,12 @@ class Beam(lofar_device): self.recv_proxy.HBAT_BF_delays_RW = HBAT_bf_delays # Record where we now point to, now that we've updated the weights. - # Only the entries within the mask have been updated: - # mask = False -> retain value, mask = True -> use new value + # Only the entries within the mask have been updated mask = self.recv_proxy.RCU_mask_RW for tile in range(96): - if mask[tile]: - self._hbat_pointing_direction[tile] = pointing_direction[tile] - self._hbat_pointing_timestamp[tile] = timestamp + if mask[tile]: + self._hbat_pointing_direction[tile] = pointing_direction[tile] + self._hbat_pointing_timestamp[tile] = timestamp # -------- # Commands -- GitLab