fix bug in cont_grid as the slow axis was not moving during scans
CI for csaxs_bec / test (push) Failing after 1m31s

This commit is contained in:
x12sa
2026-06-20 18:19:40 +02:00
parent f7d0fbb353
commit 99283884d2
+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()