bluesky.preprocessors.msg_mutator#

bluesky.preprocessors.msg_mutator(plan, msg_proc)[source]#

A simple preprocessor that mutates or deletes single messages in a plan.

To insert messages, use plan_mutator instead.

Parameters:
plangenerator

a generator that yields messages (Msg objects)

msg_proccallable

Expected signature f(msg) -> new_msg or None

Yields:
msgMsg

messages from plan, altered by msg_proc

See also

bluesky.plans.plan_mutator()