bluesky.preprocessors.stage_decorator

bluesky.preprocessors.stage_decorator(plan, devices)

‘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()