Skip to content
Snippets Groups Projects
Commit 8439d8d8 authored by Taya Snijder's avatar Taya Snijder
Browse files

removed superfluous in attribute_wrapper write_function()

parent 7e2341d5
No related branches found
No related tags found
1 merge request!18Resolve #2021 "04 16 branched from master state bug fix"
......@@ -66,8 +66,8 @@ class attribute_wrapper(attribute):
def read_RW(device):
# print("read_RW {}, {}x{}, {}, {}".format(me.name, me.dim_x, me.dim_y, me.attr_type, me.value))
"""
read_RW returns the value that was last written to the attribute
"""
read_RW returns the value that was last written to the attribute
"""
try:
return device.value_dict[self]
except Exception as e:
......@@ -78,13 +78,12 @@ class attribute_wrapper(attribute):
@fault_on_error
def write_RW(device, value):
"""
_write_RW writes a value to this attribute
"""
try:
self.write_function(value)
device.value_dict[self] = value
except Exception as e:
raise e
_write_RW writes a value to this attribute
"""
self.write_function(value)
device.value_dict[self] = value
self.fget = read_RW
self.fset = write_RW
......
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