bpm_tiltoffset_model#

class ConfigModel(*, x_pos, y_pos, x_offset, y_offset, tilt)[source]#

Bases: BaseModel

Configuration model for BPM with tilt and offset

Parameters:
  • x_pos (str) – Horizontal position catalog key

  • y_pos (str) – Vertical position catalog key

  • x_offset (str) – Horizontal BPM offset catalog key

  • y_offset (str) – Vertical BPM offset catalog key

  • tilt (str) – BPM tilt catalog key

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.

tilt: str#
x_offset: str#
x_pos: str#
y_offset: str#
y_pos: str#
class BPMTiltOffsetModel(cfg)[source]#

Bases: BPMSimpleModel

Concrete implementation of BPMModel that simulates a BPM with tilt and offset values.

get_offset_devices()[source]#

Get device handles used for offset access

Returns:

list[DeviceAccess] – Array of DeviceAcess

get_pos_devices()[source]#

Get device handles used for position reading

Returns:

list[DeviceAccess] – Array of DeviceAcess

get_tilt_device()[source]#

Get device handle used for tilt access

Returns:

DeviceAccess – DeviceAcess