bluesky.preprocessors.stage_wrapper

bluesky.preprocessors.stage_wrapper(plan, devices)[source]

‘Stage’ devices (i.e., prepare them for use, ‘arm’ them) and then unstage.

Parameters
planiterable or iterator

a generator, list, or similar containing Msg objects

devicescollection

list of devices to stage immediately on entrance and unstage on exit

Yields
msgMsg

messages from plan with ‘stage’ and finally ‘unstage’ messages inserted

See also

bluesky.plans.lazily_stage_wrapper()
bluesky.plans.stage()
bluesky.plans.unstage()