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

Temporary modification that does not convert weights into a 3d-array

parent e67273cd
No related branches found
No related tags found
No related merge requests found
...@@ -261,8 +261,12 @@ class SDP(Device): ...@@ -261,8 +261,12 @@ class SDP(Device):
def read_fpga_weights_R(self): def read_fpga_weights_R(self):
"""Return the fpga_weights_R attribute.""" """Return the fpga_weights_R attribute."""
value = numpy.array(self.attribute_mapping["fpga_weights_R"].get_value()) value = numpy.array(self.attribute_mapping["fpga_weights_R"].get_value())
fpgas = numpy.array(numpy.split(value, indices_or_sections = 16)) # ATTENTION
self._fpga_weights_R = numpy.array(numpy.split(fpgas, indices_or_sections = 12)) # 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 return self._fpga_weights_R
@only_when_on @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