Skip to content
Snippets Groups Projects
Commit 411724b3 authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Got the total number of weights wrong

parent 7017a9bc
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ class SDP(Device):
# ----------
fpga_weights_R = attribute(
dtype = ('DevBoolean',),
max_dim_x = 16 * 192 * 488,
max_dim_x = 16 * 12 * 488,
#access=AttrWriteType.READ_WRITE,
)
......@@ -170,7 +170,7 @@ class SDP(Device):
# Set default values in the RW/R attributes and add them to
# the mapping.
self._fpga_weights_R = numpy.full(16 * 192 * 488, 0.0)
self._fpga_weights_R = numpy.full(16 * 12 * 488, 0.0)
self.attribute_mapping["fpga_weights_R"] = {}
self._fpga_mask_R = numpy.full(16, False)
self.attribute_mapping["fpga_mask_R"] = {}
......@@ -245,7 +245,7 @@ class SDP(Device):
"""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 = 192))
self._fpga_weights_R = numpy.array(numpy.split(fpgas, indices_or_sections = 12))
return self._fpga_weights_R
@only_when_on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment