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)[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 modedesired_counts (
float
) – we want to be close to this maximum pixel valuenframes_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 intensity
- Return type:
List
[ExposureCondition
]- Returns:
list of optimal exposure conditions