pcdsdevices.utils.get_component

pcdsdevices.utils.get_component(obj)

Get the component that made the given object.

Parameters:

obj (ophyd.OphydItem) – The ophyd item for which to get the component.

Returns:

component (ophyd.Component) – The component, if available.