ophyd_async.tango.testing#

Package Contents#

Classes#

ExampleStrEnum

All members should exist in the Backend, and there will be no extras.

OneOfEverythingTangoDevice

Device class for the high-level API.

API#

class ophyd_async.tango.testing.ExampleStrEnum[source]#

Bases: ophyd_async.core.StrictEnum

All members should exist in the Backend, and there will be no extras.

A#

‘AAA’

B#

‘BBB’

C#

‘CCC’

class ophyd_async.tango.testing.OneOfEverythingTangoDevice(cl, name)[source]#

Bases: tango.server.Device

Device class for the high-level API.

All device-specific classes should inherit from this class.

attr_values#

None

initial_values#

None

add_scalar_attr(name: str, dtype: str, initial_value: Any)[source]#
add_array_attrs(name: str, dtype: str, initial_value: ndarray)[source]#
add_scalar_command(name: str, dtype: str)[source]#
add_spectrum_command(name: str, dtype: str)[source]#
initialize_dynamic_attributes()[source]#

Method executed at initializion phase to create dynamic attributes. Default implementation does nothing. Overwrite when necessary.

.. note:: This method is only called once when the device server starts, after init_device(), but before the device is marked as exported. If the Init command is executed on the device, the initialize_dynamic_attributes() method will not be called again.

reset_values()[source]#
read(attr)[source]#
write(attr)[source]#
echo_command_code#

‘dedent(…)’