From fe240afcdd67c821474611f180f735512007ce91 Mon Sep 17 00:00:00 2001 From: x12sa Date: Sat, 20 Jun 2026 18:19:40 +0200 Subject: [PATCH] fix bug in cont_grid as the slow axis was not moving during scans --- csaxs_bec/scans/scans_v4/cont_grid.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/csaxs_bec/scans/scans_v4/cont_grid.py b/csaxs_bec/scans/scans_v4/cont_grid.py index 9b3db69..ec58c0e 100644 --- a/csaxs_bec/scans/scans_v4/cont_grid.py +++ b/csaxs_bec/scans/scans_v4/cont_grid.py @@ -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()