fix(cont-grid): add extra point in lines to include endpoint

This commit is contained in:
2026-07-03 12:34:07 +02:00
parent 11099d226e
commit 6b22f5bb45
+7 -6
View File
@@ -141,12 +141,13 @@ class ContGrid(ScanBase):
or setting up the devices.
"""
self._check_motor_inputs()
frames_per_trigger = int(
np.ceil(np.abs(self.fast_end - self.fast_start) / self.fast_step_size)
)
self._cont_motor_params["num_lines"] = int(
np.ceil(np.abs(self.stepper_stop - self.stepper_start) / self.stepper_step_size)
)
frames_per_trigger = (
int(np.ceil(np.abs(self.fast_end - self.fast_start) / self.fast_step_size)) + 1
) # include last point
self._cont_motor_params["num_lines"] = (
int(np.ceil(np.abs(self.stepper_stop - self.stepper_start) / self.stepper_step_size))
+ 1
) # include last point
positions = position_generators.nd_grid_positions(
[
(self.fast_start, self.fast_end, frames_per_trigger),