Custom
Custom element (custom transformation wrapper)
- class model.library.custom.Custom(name: str, step: Mapping, keys: list[str], length: float = 0.0, angle: 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)[source]
Custom element
Note, input parameters are used only with alignment errors Custom element is not serializable and not invertible Slicing is not supported
- rtype:
Custom
- property angle: torch.Tensor
Get angle
- Parameters:
None
- Return type:
Tensor
- data(*, name: bool = False, alignment: bool = True) dict[str, dict[str, torch.Tensor]] | dict[str, torch.Tensor] [source]
Generate default deviation data
- Parameters:
None
- Return type:
dict[str, dict[str,Tensor]] | dict[str,Tensor]
- make_matrix()[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]