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.

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.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

Methods

get_num_images()

get_param_positions()

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

is_3d_grid_scan

model_computed_fields

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

x_axis

y_axis

z_axis

x_steps

y_steps

z_steps

x_step_size

y_step_size

z_step_size

x_start

y1_start

y2_start

z1_start

z2_start

set_stub_offsets

transmission_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

Return type:

ndarray

Returns:

The motor position this corresponds to.

Raises:

IndexError if the desired position is outside the grid.