Skip to content
Snippets Groups Projects
Commit d366fa61 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-449: dtype also has to carry the dimensionality for Tango attributes

parent 9d1384af
No related branches found
No related tags found
1 merge request!175Resolve L2SS-449 "Add deviceproxy to devices"
......@@ -57,8 +57,8 @@ class RECV(opcua_device):
# ----------
# Attributes
# ----------
ANT_status_R = attribute(dtype=str, max_dim_x=3, max_dim_y=32)
RCU_LED_colour_R = attribute(dtype=numpy.uint32, max_dim_x=32, fget=lambda self: (2 * self.proxy.RCU_LED_green_on_R + 4 * self.proxy.RCU_LED_red_on_R).astype(numpy.uint32))
ANT_status_R = attribute(dtype=(str,), max_dim_x=3, max_dim_y=32)
RCU_LED_colour_R = attribute(dtype=(numpy.uint32,), max_dim_x=32, fget=lambda self: (2 * self.proxy.RCU_LED_green_on_R + 4 * self.proxy.RCU_LED_red_on_R).astype(numpy.uint32))
ANT_mask_RW = attribute_wrapper(comms_annotation=["ANT_mask_RW" ],datatype=numpy.bool_ , dims=(3,32), access=AttrWriteType.READ_WRITE)
HBAT_BF_delays_R = attribute_wrapper(comms_annotation=["HBAT_BF_delays_R" ],datatype=numpy.int64 , dims=(32,96))
......
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