pcdsdevices.device.to_interface
- pcdsdevices.device.to_interface(device_class)
Convert an arbitrary
Device
into anInterfaceDevice
.This will replace all components in the class definition with instances of
InterfaceComponent
of the original class type defined in theComponent
.- Parameters:
device_class (
Device
) – Anophyd
device class that we’d like to convert.- Returns:
interface_class (
InterfaceDevice
) – A subclass of the inputdevice_class
that has had all components replaced withInterfaceComponent
instances.