From b8d97c240db3bfe84013619a86a05d72cee9268b Mon Sep 17 00:00:00 2001
From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl>
Date: Mon, 8 Feb 2021 10:47:26 +0100
Subject: [PATCH] Temporary modification that does not convert weights into a
 3d-array

---
 SDP/SDP/SDP.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/SDP/SDP/SDP.py b/SDP/SDP/SDP.py
index c096a0082..f76db083c 100644
--- a/SDP/SDP/SDP.py
+++ b/SDP/SDP/SDP.py
@@ -261,8 +261,12 @@ class SDP(Device):
     def read_fpga_weights_R(self):
         """Return the fpga_weights_R attribute."""
         value = numpy.array(self.attribute_mapping["fpga_weights_R"].get_value())
-        fpgas = numpy.array(numpy.split(value, indices_or_sections = 16))
-        self._fpga_weights_R = numpy.array(numpy.split(fpgas, indices_or_sections = 12))
+        # ATTENTION
+        # Fix me!
+        # This needs to be turned into a 3d-array of 16x12x488
+        #fpgas = numpy.array(numpy.split(value, indices_or_sections = 16))
+        #self._fpga_weights_R = numpy.array(numpy.split(fpgas, indices_or_sections = 12))
+        self._fpga_weights_R = numpy.array(value)
         return self._fpga_weights_R
 
     @only_when_on
-- 
GitLab