pylabrobot.resources.ResourceStack.get_top_item#

ResourceStack.get_top_item() pylabrobot.resources.resource.Resource#

Get the top item in the stack.

For stacks growing in the x, y or z direction, this is the rightmost, frontmost, or topmost item in the stack, respectively.

Returns

The top item in the stack.

Raises

ValueError – If the stack is empty.

Return type

pylabrobot.resources.resource.Resource