pylabrobot.resources.ItemizedResource.get_anchor#
- ItemizedResource.get_anchor(x: str, y: str, z: str) Coordinate #
Get a relative location within the resource.
- Parameters:
- Returns:
A relative location within the resource, the anchor point wrt the left front bottom corner.
- Return type:
Examples
>>> r = Resource("resource", size_x=12, size_y=12, size_z=12) >>> r.get_anchor("l", "b", "t")
Coordinate(x=0.0, y=12.0, z=12.0)
>>> r.get_anchor("c", "c", "c")
Coordinate(x=6.0, y=6.0, z=6.0)
>>> r.get_anchor("r", "f", "b")
Coordinate(x=12.0, y=0.0, z=0.0)