bluesky.preprocessors.suspend_wrapper

bluesky.preprocessors.suspend_wrapper(plan, suspenders)[source]

Install suspenders to the RunEngine, and remove them at the end.

Parameters
planiterable or iterator

a generator, list, or similar containing Msg objects

suspenderssuspender or list of suspenders

Suspenders to use for the duration of the wrapper

Yields
msgMsg

messages from plan, with ‘install_suspender’ and ‘remove_suspender’ messages inserted and appended