fastcs.transports.tango.util#
Members
Casts a value from tango to FastCS datatype. |
|
Casts a value from FastCS to tango datatype. |
|
Gets the metadata for a Tango field from an attribute. |
|
Gets the metadata for a Tango field from a FastCS datatype. |
|
Map a controller id to a valid Python class name for a Tango device class. |
|
Build the three-segment Tango device name for a controller. |
|
Reject controller ids that wouldn't be safe in a Tango device-name segment. |
- fastcs.transports.tango.util.validate_tango_id(id: str) None[source]#
Reject controller ids that wouldn’t be safe in a Tango device-name segment.
- fastcs.transports.tango.util.tango_dev_class_name(id: str) str[source]#
Map a controller id to a valid Python class name for a Tango device class.
Hyphens are replaced with underscores; a leading digit is prefixed with
X. Assumesidhas already been accepted byvalidate_tango_id.
- fastcs.transports.tango.util.tango_dev_name(id: str, dsr_instance: str) str[source]#
Build the three-segment Tango device name for a controller.
The id forms the leading segment, followed by the per-id Tango device class and the DSR instance name. Assumes
idhas been accepted byvalidate_tango_id.
- fastcs.transports.tango.util.get_server_metadata_from_attribute(attribute: Attribute[int | float | bool | str | Enum | ndarray, AttributeIORef]) dict[str, Any][source]#
Gets the metadata for a Tango field from an attribute.
- fastcs.transports.tango.util.get_server_metadata_from_datatype(datatype: DataType[int | float | bool | str | Enum | ndarray]) dict[str, str][source]#
Gets the metadata for a Tango field from a FastCS datatype.