Custom plans executed by the queueserver

The following lines have been appended to 15-plans.py in ~/Misc/blueskyDESY/startup:

 
def scan_tk( detectors, *args, num=None, per_step=None, md=None):
    import blueskyDESY
    RE.subscribe(blueskyDESY.docCallback())
    return (yield from scan( detectors, *args, num=None, per_step=per_step, md=md))

The file 15-plans.py is part of the standard distribution.

 
kracht@haso107d99 ~/Misc/blueskyDESY/startup
$ ls -1
00-ophyd.py
15-plans.py
99-custom.py
Files.lis
existing_plans_and_devices.yaml
user_group_permissions.yaml
(bluesky)

Notice that existing_plans_and_devices.yaml is created at the start of the qserver.

The command

start-re-manager --verbose --startup-dir ~/Misc/blueskyDESY/startup
makes the custom plan available.