Skip to content

Commit

Permalink
MNT: use configure so that descriptors get invalidated
Browse files Browse the repository at this point in the history
This may require a newer version of ohpyd, may have to vendor a helper
function to get the dotted_name functionality
  • Loading branch information
tacaswell committed Feb 19, 2020
1 parent 075d13e commit 017ca39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions startup/40-scans.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 017ca39

Please sign in to comment.