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