fix bug in cont_grid as the slow axis was not moving during scans
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user