blissoda.id31.optimize_exposure.optimize_exposure_condition#
- blissoda.id31.optimize_exposure.optimize_exposure_condition(detector, tframe=0.2, default_att_position=None, desired_counts=100000.0, dynamic_range=1048576, min_counts_per_frame=1000, nframes_measure=1, nframes_default=3, reduce_desired_deviation=True, expose_with_integral_frames=False, maxint_sigma=0, optimize_attenuator=True, mask=None)[source]#
Optimize the attenuator and return the optimal exposure time.
- Parameters:
detector – lima detector object
tframe (
float) – time of a single frame in accumulation modedefault_att_position (
Optional[int]) – start the optimization with this attenuator positiondesired_counts (
float) – we want to be close to this maximum pixel valuedynamic_range (
int) – full well of the detectormin_counts_per_frame (
float) – we need at least these counts to even start optimizingnframes_measure (
int) – number of frames used for optimization measurementsnframes_default (
int) – try modify attenuators for this number of framesreduce_desired_deviation (
bool) – reduce deviation from the desired countsexpose_with_integral_frames (
bool) – exposure time is n x frame time with n integral or notmaxint_sigma (
float) – gaussian smoothing sigma in pixels before getting the maximum frame intensityoptimize_attenuator (
bool) – Whether to change or not the attenuator during the optimizationmask (
Optional[ndarray]) – Mask to apply to images during exposure time optimization
- Return type:
- Returns:
optimal exposure condition