From e8a605916a36ff0663a7b128664c853430700561 Mon Sep 17 00:00:00 2001
From: stedif <stefano.difrischia@inaf.it>
Date: Wed, 26 Jan 2022 12:09:12 +0100
Subject: [PATCH] L2SS-523: fix bugs

---
 tangostationcontrol/tangostationcontrol/devices/beam.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tangostationcontrol/tangostationcontrol/devices/beam.py b/tangostationcontrol/tangostationcontrol/devices/beam.py
index 62e9be3ac..bf6546ad8 100644
--- a/tangostationcontrol/tangostationcontrol/devices/beam.py
+++ b/tangostationcontrol/tangostationcontrol/devices/beam.py
@@ -105,8 +105,7 @@ class Beam(lofar_device):
 
         return delays
 
-    @staticmethod
-    def _calculate_HBAT_bf_delays(delays: numpy.ndarray):
+    def _calculate_HBAT_bf_delays(self,delays: numpy.ndarray):
         """
         Helper function that converts a signal path delay (in seconds) to an analog beam weight,
         which is a value per tile per dipole per polarisation.
@@ -140,7 +139,7 @@ class Beam(lofar_device):
         for rcu in range(96):
             if mask[rcu]:
                 self._hbat_pointing_direction[rcu] = pointing_direction[rcu]
-                self._hbat_pointing_timestamp[rcu] = timestamp
+                self._hbat_pointing_timestamp[rcu] = timestamp.timestamp()
 
     # --------
     # Commands
-- 
GitLab