pylabrobot.resources.Lid.rotate_to#
- Lid.rotate_to(x: float | None = None, y: float | None = None, z: float | None = None, pivot_coordinate: Coordinate | None = None)#
Set the rotation about each axis, where
rotateturns by an amount instead.- Parameters:
x (float | None) – the angle about X to sit at, in degrees. Left where it is when None.
y (float | None) – the angle about Y to sit at, in degrees. Left where it is when None.
z (float | None) – the angle about Z to sit at, in degrees. Left where it is when None.
pivot_coordinate (Coordinate | None) – what to turn about, as
rotatetakes it.
- Raises:
NoLocationError – If a pivot is given for a resource with no location, as
rotateraises.