bluesky.preprocessors.inject_md_decorator#

bluesky.preprocessors.inject_md_decorator(plan, md)#

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