def get_dynamic_attributes(self): cache_built = hasattr(self, "_dynamic_attributes_cache") std_attrs, dyn_attrs = \ PoolExpChannelDevice.get_dynamic_attributes(self) if not cache_built: # For value attribute, listen to what the controller says for data # type (between long and float) and data format (scalar, spectrum # or image) value = std_attrs.get('value') if value is not None: _, data_info, attr_info = value ttype, tformat = to_tango_type_format(attr_info.dtype, attr_info.dformat) data_info[0][0] = ttype data_info[0][1] = tformat if tformat == SPECTRUM: shape = attr_info.maxdimsize data_info[0].append(shape[0]) elif tformat == IMAGE: shape = attr_info.maxdimsize data_info[0].append(shape[0]) data_info[0].append(shape[1]) return std_attrs, dyn_attrs
def get_dynamic_attributes(self): cache_built = hasattr(self, "_dynamic_attributes_cache") std_attrs, dyn_attrs = \ PoolExpChannelDevice.get_dynamic_attributes(self) if not cache_built: # For value attribute, listen to what the controller says for data # type (between long and float) and data format (scalar, spectrum # or image) value = std_attrs.get('value') if value is not None: _, data_info, attr_info = value ttype, tformat = to_tango_type_format(attr_info.dtype, attr_info.dformat) data_info[0][0] = ttype data_info[0][1] = tformat if tformat == SPECTRUM: shape = attr_info.maxdimsize data_info[0].append(shape[0]) elif tformat == IMAGE: shape = attr_info.maxdimsize data_info[0].append(shape[0]) data_info[0].append(shape[1]) return std_attrs, dyn_attrs
def get_dynamic_attributes(self): cache_built = hasattr(self, "_dynamic_attributes_cache") std_attrs, dyn_attrs = \ PoolExpChannelDevice.get_dynamic_attributes(self) if not cache_built: # For value attribute, listen to what the controller says for data # type (between long and float) value = std_attrs.get('value') if value is not None: _, data_info, attr_info = value ttype, _ = to_tango_type_format(attr_info.dtype) data_info[0][0] = ttype return std_attrs, dyn_attrs
def get_dynamic_attributes(self): cache_built = hasattr(self, "_dynamic_attributes_cache") std_attrs, dyn_attrs = \ PoolExpChannelDevice.get_dynamic_attributes(self) if not cache_built: # For value attribute, listen to what the controller says for data # type (between long and float) value = std_attrs.get('value') if value is not None: attr_name, data_info, attr_info = value ttype, _ = to_tango_type_format(attr_info.dtype) data_info[0][0] = ttype # Add manually a 'CurrentValue' with the same time as 'Value' attr_name = 'CurrentValue' attr_info = attr_info.copy() attr_info.description = attr_name std_attrs[attr_name] = [attr_name, data_info, attr_info] return std_attrs, dyn_attrs
def get_dynamic_attributes(self): cache_built = hasattr(self, "_dynamic_attributes_cache") std_attrs, dyn_attrs = \ PoolExpChannelDevice.get_dynamic_attributes(self) if not cache_built: # For value attribute, listen to what the controller says for data # type (between long and float) value = std_attrs.get('value') if value is not None: attr_name, data_info, attr_info = value ttype, _ = to_tango_type_format(attr_info.dtype) data_info[0][0] = ttype # Add manually a 'CurrentValue' with the same time as 'Value' attr_name = 'CurrentValue' attr_info = attr_info.copy() attr_info.description = attr_name std_attrs[attr_name] = [attr_name, data_info, attr_info] return std_attrs, dyn_attrs