Plans#
- htss_rig_bluesky.plans.calibration.scan_center(det: AravisDetector, sample: TrainingRigSampleStage, min_x: float | None = None, max_x: float | None = None, x_steps: int = 20, one_side: float = 0.0, other_side: float = 180.0, images_per_side: int = 5, exposure_time: float = 0.15) Generator [source]#
Scan the sample x motor across a range of positions. For each x position, the sample will be imaged from two angles, typically 180 degrees apart. It may also be imaged several times from each position to average out noise.
The data from this plan is useful for calibrating the sample, performing sum and centroid post-processing on the data can be used to find where to put x such that the sample is in the center of the beam.
- Parameters:
det – The detector
sample – The sample stage
min_x – The x position to start with. Defaults to low limit of motor
max_x – The x position to end with. Defaults to high limit of motor
x_steps – The number of steps to take. Defaults to 10
one_side – The position of theta representing a side of the sample
other_side – Another theta position, typically 180 degrees away from one_side
images_per_side – Number of images to take of each side at each x position
exposure_time – Exposure time of the detector
- Yields:
Plan
- htss_rig_bluesky.plans.calibration.scan_exposure(det: AravisDetector, min_exposure: float = 0.01, max_exposure: float = 0.2, exposure_steps: int = 10) Generator [source]#
Take images at a range of exposure times
- Parameters:
det – The detector
min_exposure – The exposure time to start with. Defaults to 0.01 seconds
max_exposure – The exposure time to end with. Defaults to 0.2 seconds
exposure_steps – The number of steps to take. Defaults to 10
- Yields:
Plan