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

Trying to get the braces right, think I got it now

parent 2253a03b
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,7 @@ class SDP(Device):
@fault_on_error
def read_fpga_scrap_R(self):
"""Return the fpga_scrap_R attribute."""
self._fpga_scrap_R = numpy.array(numpy.split(numpy.array(self.attribute_mapping["fpga_scrap_R"].get_data_value().Value.Value, indices_or_sections = 16)))
self._fpga_scrap_R = numpy.array(numpy.split(numpy.array(self.attribute_mapping["fpga_scrap_R"].get_data_value().Value.Value), indices_or_sections = 16))
return self._fpga_scrap_R
@only_when_on
......@@ -351,7 +351,7 @@ class SDP(Device):
@fault_on_error
def read_fpga_weights_R(self):
"""Return the fpga_weights_R attribute."""
value = numpy.array(numpy.split(numpy.array(self.attribute_mapping["fpga_weights_R"].get_value(), indices_or_sections = 16)))
value = numpy.array(numpy.split(numpy.array(self.attribute_mapping["fpga_weights_R"].get_value()), indices_or_sections = 16))
self._fpga_weights_R = value
return self._fpga_weights_R
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment