pylabrobot.resources.hamilton.hamilton_decks.HamiltonDeck.get_or_create_autoload_sled#

HamiltonDeck.get_or_create_autoload_sled(name: str, x: float, reference_point_from_left: float) Resource#

Get, or create once, the deck-owned autoload sled.

The deck owns it: created as a child the first time and reused thereafter, so repeated setups do not duplicate it.

Parameters:
  • name (str) – where the carrier-handling wheel is, in mm, on this deck. The wheel is the point the drive reports, so the sled is placed around it.

  • x (float) – where the wheel is, in mm, on this deck.

  • reference_point_from_left (float) – how far the point the drive reports - the carrier-handling wheel - sits from the sled’s left edge, in mm.

Returns:

The sled resource, whether it was just created or already there.

Return type:

Resource