L2SS-300: Allow annotation about the class of attribute the comms_annotation...
Compare changes
@@ -14,11 +14,12 @@ class attribute_wrapper(attribute):
@@ -14,11 +14,12 @@ class attribute_wrapper(attribute):
def __init__(self, comms_annotation=None, datatype=None, dims=(1,), access=AttrWriteType.READ, init_value=None, **kwargs):
wraps around the tango Attribute class. Provides an easier interface for 1d or 2d arrays. Also provides a way to abstract
comms_annotation: data passed along to the attribute. can be given any form of data. handling is up to client implementation
@@ -31,6 +32,7 @@ class attribute_wrapper(attribute):
@@ -31,6 +32,7 @@ class attribute_wrapper(attribute):
raise TypeError("Attribute needs to be a Tango-supported numpy or str type, but has type \"%s\"" % (datatype,))
self.comms_annotation = comms_annotation # store data that can be used by the comms interface. not used by the wrapper itself
self.numpy_type = datatype # tango changes our attribute to their representation (E.g numpy.int64 becomes "DevLong64")