DiamondLightSource / hyperion

Unattended Data Collection using BlueSky / Ophyd
BSD 3-Clause "New" or "Revised" License
5 stars 5 forks source link

Make a top level flyscan_xray_centre_plan #1432

Closed olliesilvester closed 5 days ago

olliesilvester commented 4 weeks ago

We're now in a position where we can create a top level flyscan_xray_centre_plan which calls parts from panda_flyscan_xray_centre_plan and zebra_flyscan_xray_centre_plan, depending on the use_panda parameter. This will be a lot cleaner and remove quite a bit of duplicated code.

Differences between panda and zebra scans:

The best way to do this: panda_flyscan_xray_centre_plan and zebra_flyscan_xray_centre_plan should contain small functions for the bits that differ, eg they both have a setup_devices_for_gridscan, and tidy_up_devices which do different things. Then, the top level plan can have a single check at the beginning to see which type of gridscan it's doing, and then import the functions from the correct place.

Acceptance Criteria