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