blissoda.id31.optimize_exposure.optimal_exposure_conditions#
- blissoda.id31.optimize_exposure.optimal_exposure_conditions(mot, start, stop, intervals, detector, tframe=0.2, nframes_measure=1, nframes_default=3, desired_counts=100000.0, reduce_desired_deviation=True, expose_with_integral_frames=False, maxint_sigma=2, mask=None)[source]#
Return the optimal attenuator and exposure time for each motor position. Measurements are done at the current attenuator position.
- Parameters:
mot
start
stop
intervals
detector – lima detector object
tframe (float) – time of a single frame in accumulation mode
desired_counts (float) – we want to be close to this maximum pixel value
nframes_measure (int) – number of frames used for optimization measurements
nframes_default (int) – try modify attenuators for this number of frames
reduce_desired_deviation (bool) – reduce deviation from the desired counts
expose_with_integral_frames (bool) – exposure time is n x frame time with n integral or not
maxint_sigma (float) – gaussian smoothing sigma in pixels before getting the maximum frame intensity
mask (Optional[numpy.ndarray]) – Mask to apply to images during exposure time optimization
- Return type:
List[ExposureCondition | None]
- Returns:
list of optimal exposure conditions