fix bug in cont_grid as the slow axis was not moving during scans

This commit is contained in:
x12sa
2026-06-23 13:04:33 +02:00
committed by appel_c
co-authored by appel_c
parent 8e030998e7
commit fe240afcdd
+2 -1
View File
@@ -185,13 +185,14 @@ class ContGrid(ScanBase):
)
positions = position_generators.nd_grid_positions(
[
(self.fast_start, self.fast_end, frames_per_trigger),
(self.stepper_start, self.stepper_stop, self._cont_motor_params["num_lines"]),
(self.fast_start, self.fast_end, frames_per_trigger),
],
snaked=False,
)
# Count only the end point of each line as a valid position, as the fast axis is continuously moving and only triggered at
# the beginning of the line moving to the end point.
positions = positions[:, ::-1]
self.positions = positions[(frames_per_trigger - 1) :: frames_per_trigger, :]
# Get device specific parameters
self._fetch_device_params()