dodal.devices.fast_grid_scan.GridScanParamsCommon#
- class dodal.devices.fast_grid_scan.GridScanParamsCommon[source]#
Common holder class for the parameters of a grid scan in a similar layout to EPICS. The parameters and functions of this class are common to both the zebra and panda triggered fast grid scans in 2d or 3d.
The grid specified is where data is taken e.g. it can be assumed the first frame is at x_start, y1_start, z1_start and subsequent frames are N*step_size away.
- Parameters:
data (
Any)
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- Parameters:
data (
Any)
Methods
grid_position_to_motor_position(grid_position)Converts a grid position, given as steps in the x, y, z grid, to a real motor position.
Attributes
model_configConfiguration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].x_axisy_axisz_axisx_stepsy_stepsx_step_size_mmy_step_size_mmx_start_mmy1_start_mmz1_start_mmset_stub_offsetstransmission_fraction- grid_position_to_motor_position(grid_position: ndarray) ndarray[source]#
Converts a grid position, given as steps in the x, y, z grid, to a real motor position.
- Parameters:
grid_position (
ndarray) – The x, y, z position in grid steps. The origin is at the centre of the first grid box- Return type:
ndarray- Returns:
The motor position this corresponds to.
- Raises:
IndexError if the desired position is outside the grid. –