pcdsdevices.device.to_interface

pcdsdevices.device.to_interface(device_class)

Convert an arbitrary Device into an InterfaceDevice.

This will replace all components in the class definition with instances of InterfaceComponent of the original class type defined in the Component.

Parameters:

device_class (Device) – An ophyd device class that we’d like to convert.

Returns:

interface_class (InterfaceDevice) – A subclass of the input device_class that has had all components replaced with InterfaceComponent instances.