4. Config add plans#
As well as adding devices to the config.yaml, you can add plans. Under the code you already have, add the following:
- kind: planFunctions
module: dodal.plans
- kind: planFunctions
module: dodal.plan_stubs.wrapped
These plans that will be used in this tutorial can be found in the dodal repository. Specifically, in dodal/src/dodal/plans/wrapped.py and dodal/src/dodal/plan_stubs/wrapped.py.
Save the changes you’ve made to the config.yaml file. Navigate back to the terminal where the blueapi worker is running. Restart the server to use this updated config.yaml file.
Now run
blueapi controller plans in the same terminal window used previously for this command and you should see a list of plans that can be run. For example, count, list_grid_scan, num_scan etc.