fix(cont-grid): add extra point in lines to include endpoint
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user