Corrector
Corrector element (thin dipole kick)
px -> px + kx py -> py + ky
- class model.library.corrector.Corrector(name: str, cx: float = 0.0, cy: float = 0.0, 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, factor: float = 1.0, output: bool = False, matrix: bool = False)[source]
Corrector element
Zero lenght element, can’t be used in insertion mode
- rtype:
Corrector
- property cx: torch.Tensor
Get cx
- Parameters:
None
- Return type:
Tensor
- property cy: torch.Tensor
Get cy
- Parameters:
None
- Return type:
Tensor
- property factor: float
Get factor
- Parameters:
None
- Return type:
float
- 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]