BPM
BPM element
Represents a BPM element Calibration errors are deviation variables (not specified on initialization) Transforms input to BPM or to beam frame (initialization flag) To represent the full transformation (beam-BPM-beam), two elements with the same name can be used (or change the direction switch)
- class model.library.bpm.BPM(name: str, direction: Literal['forward', 'inverse'] = 'forward', dp: float = 0.0, *, alignment: bool = True, dx: float = 0.0, dy: float = 0.0, dz: float = 0.0, wx: float = 0.0, wy: float = 0.0, wz: float = 0.0, output: bool = False, matrix: bool = False)[source]
BPM element
Zero lenght element, can’t be used in insertion mode
- rtype:
BPM
- property direction: torch.Tensor
Get direction
- Parameters:
None
- Return type:
str
- make_matrix() tuple[torch.Tensor, torch.Tensor] [source]
Generate transformation matrices (error element)
- Parameters:
None
- Return type:
tuple[Tensor, Tensor]
- property serialize: dict[str, str | int | float | bool]
Serialize element
- Parameters:
None
- Return type:
dict[str, str|int|float|bool]