Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import bluesky.plan_stubs as bps
  2. from xpdacq.beamtime import _check_mini_expo
  3.  
  4. def configure_area_det_expo(expo):
  5. area_det = xpd_configuration['area_det']
  6. # compute number of frames
  7. acq_time = area_det.cam.acquire_time.get()
  8. _check_mini_expo(exposure, acq_time)
  9. num_frame = np.ceil(exposure / acq_time)
  10. computed_exposure = num_frame * acq_time
  11. yield from bps.mv(area_det.images_per_set, num_frame)
  12. # print exposure time
  13. print("INFO: requested exposure time = {} - > computed exposure time"
  14. "= {}".format(exposure, computed_exposure))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement