tango.pyaml.attribute_list_read_only#

Read-only list of Tango attributes handled through Tango groups.

Classes

AttributeListReadOnly(attributes[, name, unit])

Handle a read-only list of Tango attributes using Tango Groups.

AttributeListReadOnlyConfig(*, attributes[, ...])

Configuration model for a read-only list of Tango attributes.

class tango.pyaml.attribute_list_read_only.AttributeListReadOnly(attributes, name='', unit='')#

Bases: AttributeList, DynamicValidation

Handle a read-only list of Tango attributes using Tango Groups.

Same as AttributeList, except that asynchronous writes through set() are rejected.

Parameters:
  • attributes (list of str) – List of Tango attribute paths.

  • name (str, optional) – Group name.

  • unit (str, optional) – Unit of the attributes.

_attributes#

Tango attribute paths in configured order.

Type:

list of str

_name#

Group name.

Type:

str

_unit#

Unit of the attributes.

Type:

str

set(value)#

Disallowed asynchronous write operation.

set_and_wait(value)#

Write a value synchronously to all Tango attributes.

set(value)#

Disallowed asynchronous write operation.

Parameters:

value (float) – Ignored.

Raises:

pyaml.PyAMLException – Always raised because the attribute list is read-only.

set_and_wait(value)#

Write a value synchronously to all Tango attributes.

Parameters:

value (float) – Value to write.

class tango.pyaml.attribute_list_read_only.AttributeListReadOnlyConfig(*, attributes, name='', unit='')#

Bases: AttributeListConfig

Configuration model for a read-only list of Tango attributes.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].