From 2f7cca612ddde5a8299e4389141fca28d3b28299 Mon Sep 17 00:00:00 2001
From: stedif <stefano.difrischia@inaf.it>
Date: Fri, 1 Apr 2022 12:58:02 +0200
Subject: [PATCH] L2SS-643: bug fixing

---
 tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py b/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py
index 35d484139..717d2d9bb 100644
--- a/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py
+++ b/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py
@@ -152,7 +152,7 @@ class Beamlet(opcua_device):
         real = numpy.array(unit * numpy.sin(phases), dtype=numpy.short)
         imag = numpy.array(unit * numpy.cos(phases), dtype=numpy.short)
         # join 16 bits of imaginary part (MSB) with 16 bits of real part (LSB)
-        bf_weights = numpy.array( numpy.frombuffer( b''.join(imag,real), dtype=numpy.uint32 ) )
+        bf_weights = numpy.array( numpy.frombuffer( b''.join([imag,real]), dtype=numpy.uint32 ) )
         
         return bf_weights
         
-- 
GitLab