bluesky.preprocessors.inject_md_wrapper

bluesky.preprocessors.inject_md_wrapper(plan, md)[source]

Inject additional metadata into a run.

This takes precedences over the original metadata dict in the event of overlapping keys, but it does not mutate the original metadata dict. (It uses ChainMap.)

Parameters
planiterable or iterator

a generator, list, or similar containing Msg objects

mddict

metadata