sm_bluesky.beamlines.p99.plans
#
Members
Initiates a 2-axis scan, targeting a maximum scan speed of around 10Hz. |
|
Standard Bluesky grid scan adapted to use step size. |
- sm_bluesky.beamlines.p99.plans.stxm_fast(dets: list[Readable], count_time: float, step_motor: Motor, step_start: float, step_end: float, scan_motor: Motor, scan_start: float, scan_end: float, plan_time: float, point_correction: float = 1, step_size: float | None = None, home: bool = False, snake_axes: bool = True, md: dict[str, Any] | None = None) Generator[Msg, Any, P] #
Initiates a 2-axis scan, targeting a maximum scan speed of around 10Hz. Calculates the number of data points based on the detector’s count time. If no step size is provided, aims for a uniform distribution of points. Adjusts scan speed and step size to fit the desired scan duration.
- Parameters:
dets (list[Readable]) – List of detectors to use for the scan.
count_time (float) – Detector count time.
step_motor (Motor) – Motor for the slow axis.
step_start (float) – Starting position for the step motor.
step_end (float) – Ending position for the step motor.
scan_motor (Motor) – Motor for the continuously moving axis.
scan_start (float) – Starting position for the scan motor.
scan_end (float) – Ending position for the scan motor.
plan_time (float) – Desired duration of the scan in seconds.
point_correction (float, optional) – Scaling factor for the number of points, by default 1.
step_size (float, optional) – Step size for the slow axis, by default None.
home (bool, optional) – If True, move back to the original position after the scan, by default False.
snake_axes (bool, optional) – If True, perform a snake scan, by default True.
md (dict, optional) – Metadata for the scan, by default None.
- Returns:
A Bluesky generator for the scan.
- Return type:
MsgGenerator
- sm_bluesky.beamlines.p99.plans.stxm_step(dets: Sequence[Readable], count_time: float, x_step_motor: Motor, x_step_start: float, x_step_end: float, x_step_size: float, y_step_motor: Motor, y_step_start: float, y_step_end: float, y_step_size: float, home: bool = False, snake: bool = False, md: dict | None = None) Generator[Msg, Any, P] #
Standard Bluesky grid scan adapted to use step size. Optionally moves back to the original position after scan.
- Parameters:
dets (Sequence[Readable]) – Area detectors or readable devices.
count_time (float) – Detector count time.
x_step_motor (Motor) – Motor for the X axis.
x_step_start (float) – Starting position for x_step_motor.
x_step_end (float) – Ending position for x_step_motor.
x_step_size (float) – Step size for x motor.
y_step_motor (Motor) – Motor for the Y axis.
y_step_start (float) – Starting position for y_step_motor.
y_step_end (float) – Ending position for y_step_motor.
y_step_size (float) – Step size for y motor.
home (bool, optional) – If True, move back to position before scan.
snake (bool, optional) – If True, do grid scan without moving scan axis back to start position.
md (dict, optional) – Metadata.
- Returns:
A Bluesky generator for the scan.
- Return type:
MsgGenerator