diff --git a/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py b/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py index 3be9a869d3f7c58281e714c8a5f3c470e4ccbac5..68ce528ee3246121f62090d6f642e2d9387dd53a 100644 --- a/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py +++ b/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py @@ -74,28 +74,28 @@ class attribute_wrapper(attribute): @only_in_states([DevState.STANDBY, DevState.ON], log=False) @fault_on_error() - def write_RW(device, value): + def write_func_wrapper(device, value): """ _write_RW writes a value to this attribute """ self.write_function(value) - self.fset = write_RW + self.fset = write_func_wrapper """ Assign the read function to the attribute""" @only_in_states([DevState.STANDBY, DevState.ON], log=False) @fault_on_error() - def read_R(device): + def read_func_wrapper(device): """ _read_R reads the attribute value, stores it and returns it" """ device.value_dict[self] = self.read_function() return device.value_dict[self] - self.fget = read_R + self.fget = read_func_wrapper super().__init__(dtype=datatype, max_dim_y=max_dim_y, max_dim_x=max_dim_x, access=access, **kwargs)