From 017ca39cf5af073135c46a3317c403b48505ed3c Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Tue, 11 Feb 2020 13:59:11 -0500 Subject: [PATCH] MNT: use configure so that descriptors get invalidated This may require a newer version of ohpyd, may have to vendor a helper function to get the dotted_name functionality --- startup/40-scans.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/startup/40-scans.py b/startup/40-scans.py index 193d689..1e63a6d 100755 --- a/startup/40-scans.py +++ b/startup/40-scans.py @@ -129,9 +129,9 @@ def _set_andor_param(exposure_time=0.1, period=0.1, chunk_size=1): yield from abs_set(Andor.cam.acquire, 0, wait=True) yield from abs_set(Andor.cam.image_mode, 0, wait=True) - yield from abs_set(Andor.cam.num_images, chunk_size, wait=True) - yield from abs_set(Andor.cam.acquire_time, exposure_time, wait=True) - yield from abs_set(Andor.cam.acquire_period, period, wait=True) + yield from bps.configure(Andor, {Andor.cam.num_images.dotted_name: chunk_size, + Andor.cam.acquire_time.dotted_name: exposure_time, + Andor.cam.acquire_period.dotted_name, period}) def _set_rotation_speed(rs=1):