Improve `CustomDetectorMixin` from *psi_detector_base* `on_trigger/complete` methods
Description
This MR improves the functionality of psi_detector_base.custom_prepare_class' methods on_trigger/complete to return a ophyd.DeviceStatus` object (optionally).
Related Issues
closes #74 (closed)
Type of Change
- adapted trigger/complete method
- extend
CustomDetectorMixinwith new function (wait_with_status, to wrap around thewait_for_signalmethod) and return aDeviceStatuswhich can be used by BEC to wait for signals to resolve.
Potential side effects
Not aware of any, should refactor beamline plugin class with on_complete/trigger methods if necessary.
Comments
This should be backwards compatible. I tested with the cSAXS_bec repo. FYI, we should consider setting up a documentation for a detector integration, i.e. step-by-step guide. Dedicated functionality of different functions of CustomDetectorMixin could be explained there.
Definition of Done
-
Documentation is up-to-date.