pylabrobot.opentrons.OT2#
- class pylabrobot.opentrons.OT2(host: str, port: int = 31950, deck: OTDeck | None = None, traversal_height: float = 120, command_timeout: float = 30, command_poll_interval: float = 0.05, io: HTTP | None = None)#
Bases:
objectOpentrons OT-2 controlled through its robot-server HTTP API.
connect()opens the transport for queries.setup()also creates a run, binds mounted pipettes, and optionally homes the robot. Physical operations are exposed onleft_pipetteandright_pipette.Attributes
Mounted pipettes, left first.
Software version used to configure the active run, or None before setup.
Methods
__init__(host[, port, deck, ...])connect()Open the transport for queries, without creating a run or moving the robot.
Read the front door's switch.
Return a fresh health reading without changing device or run state.
Read physical pipette identities without loading or replacing pipette objects.
Read whether the rail lights are on.
get_run(run_id)Read one server run by id, without selecting or stopping it.
get_runs()Read server runs without selecting, stopping, or replacing the active run.
Return the robot's current run when it is not finished, or None.
home()Home the gantry and pipette axes.
Read connected module identities without loading modules into the run.
set_rail_lights(on)Turn the rail lights on or off.
setup([skip_home])Connect, discover and bind pipettes to a run, and optionally home.
stop()Stop the run and close the transport, retaining state if run shutdown fails.
stop_run(run_id[, timeout])Stop a run the robot holds and wait until the robot reports it finished.