BCDA-APS / bluesky_training

Bluesky training, including instrument package
https://bcda-aps.github.io/bluesky_training/
Other
11 stars 0 forks source link

What is plan_name in the metadata? How is this defined? #27

Closed prjemian closed 2 years ago

prjemian commented 2 years ago

The plan_name (in the metadata) is the name of the bluesky plan (Python generator function) that calls bluesky.plan_stubs.open_run(). Typically, the plan will set this in the metadata dictionary:

    'plan_name': 'count',

If it is not set in the metadata, then open_run() will define it as the name of the plan that called open_run().

plan_name = getattr(self._plan, '__name__', '')