test: add cont grid scan tests
CI for csaxs_bec / test (push) Successful in 1m32s
CI for csaxs_bec / test (pull_request) Successful in 1m33s

This commit is contained in:
2026-06-24 12:51:11 +02:00
parent da534b59a9
commit 8b92a283cf
+10 -47
View File
@@ -75,58 +75,21 @@ class ContGrid(ScanBase):
}
def __init__(
# fmt: off
self,
fast_axis: Annotated[
DeviceBase,
ScanArgument(display_name="Fast Axis", description="Axis with continuous motion."),
],
fast_start: Annotated[
float,
ScanArgument(
display_name="Fast Start",
description="Start position for measurement points of the fast axis.",
),
],
fast_end: Annotated[
float,
ScanArgument(
display_name="Fast End",
description="End position for measurement points of the fast axis.",
),
],
fast_step_size: Annotated[
float,
ScanArgument(
display_name="Fast Step Size",
description="Step size for points of the continuous motion axis.",
),
],
stepper_axis: Annotated[
DeviceBase,
ScanArgument(
display_name="Step Axis",
description="Step axis of the grid scan, stepping through the lines.",
),
],
stepper_start: Annotated[
float,
ScanArgument(display_name="Step Start", description="Start position of the step axis."),
],
stepper_stop: Annotated[
float,
ScanArgument(display_name="Step Stop", description="End position of the step axis."),
],
stepper_step_size: Annotated[
float,
ScanArgument(
display_name="Step Step Size",
description="Step size of the step axis in units of the motor.",
),
],
fast_axis: Annotated[DeviceBase, ScanArgument(display_name="Fast Axis", description="Axis with continuous motion.")],
fast_start: Annotated[float, ScanArgument(display_name="Fast Start", description="Start position for measurement points of the fast axis.")],
fast_end: Annotated[float, ScanArgument(display_name="Fast End", description="End position for measurement points of the fast axis.")],
fast_step_size: Annotated[float, ScanArgument(display_name="Fast Step Size", description="Step size for points of the continuous motion axis.")],
stepper_axis: Annotated[DeviceBase, ScanArgument(display_name="Step Axis", description="Step axis of the grid scan, stepping through the lines.")],
stepper_start: Annotated[float, ScanArgument(display_name="Step Start", description="Start position of the step axis.")],
stepper_stop: Annotated[float, ScanArgument(display_name="Step Stop", description="End position of the step axis.")],
stepper_step_size: Annotated[float, ScanArgument(display_name="Step Step Size", description="Step size of the step axis in units of the motor.")],
exp_time: DefaultArgType.ExposureTime,
relative: DefaultArgType.Relative = False,
fast_axis_always_in_pos_dir: bool = True,
**kwargs,
# fmt: on
):
"""
Continuous grid scan with 2-axis. The scan requires the fast axis to properly implement base velocity as well as high velocity and high acceleration time