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

Add forgotten "self."

parent 677aee84
Branches
No related tags found
No related merge requests found
...@@ -303,7 +303,7 @@ class SDP(Device): ...@@ -303,7 +303,7 @@ class SDP(Device):
def write_fpga_mask_RW(self, value): def write_fpga_mask_RW(self, value):
"""Return the fpga_mask_RW attribute.""" """Return the fpga_mask_RW attribute."""
self.attribute_mapping["fpga_mask_RW"].set_value(value.tolist()) self.attribute_mapping["fpga_mask_RW"].set_value(value.tolist())
_fpga_mask_RW = value self._fpga_mask_RW = value
return return
@only_when_on @only_when_on
...@@ -366,7 +366,7 @@ class SDP(Device): ...@@ -366,7 +366,7 @@ class SDP(Device):
def write_fpga_weights_RW(self, value): def write_fpga_weights_RW(self, value):
"""Return the fpga_weights_RW attribute.""" """Return the fpga_weights_RW attribute."""
self.attribute_mapping["fpga_weights_RW"].set_data_value(opcua.ua.uatypes.Variant(value = value.flatten().tolist(), varianttype=opcua.ua.VariantType.Int16)) self.attribute_mapping["fpga_weights_RW"].set_data_value(opcua.ua.uatypes.Variant(value = value.flatten().tolist(), varianttype=opcua.ua.VariantType.Int16))
_fpga_weights_RW = value self._fpga_weights_RW = value
@only_when_on @only_when_on
@fault_on_error @fault_on_error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment