fastcs.transports.tango.util#

Members

cast_from_tango_type

Casts a value from tango to FastCS datatype.

cast_to_tango_type

Casts a value from FastCS to tango datatype.

get_server_metadata_from_attribute

Gets the metadata for a Tango field from an attribute.

get_server_metadata_from_datatype

Gets the metadata for a Tango field from a FastCS datatype.

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.

fastcs.transports.tango.util.cast_to_tango_type(datatype: DataType[DType_T], value: DType_T) object[source]#

Casts a value from FastCS to tango datatype.

fastcs.transports.tango.util.cast_from_tango_type(datatype: DataType[DType_T], value: object) DType_T[source]#

Casts a value from tango to FastCS datatype.