AFL.automation.prepare.VirtualOT2HTTPDriver#

Functions

listify(obj)

Classes

Driver(name[, defaults, overrides, ...])

OT2HTTPDriver([overrides])

VirtualOT2HTTPDriver([overrides])

In-memory mock of OT2HTTPDriver for CI testing.

class AFL.automation.prepare.VirtualOT2HTTPDriver.VirtualOT2HTTPDriver(overrides=None)[source]#

In-memory mock of OT2HTTPDriver for CI testing.

This driver inherits from OT2HTTPDriver but overrides all network-facing functionality. Calls simply update internal state and log actions, allowing test suites to exercise OT2-dependent code without requiring hardware or the HTTP server.

__init__(overrides=None)[source]#
reset()[source]#

Reset all stored state.

home(**kwargs)[source]#

Home the robot’s axes using the dedicated /robot/home endpoint.

This endpoint is a direct control endpoint and doesn’t require creating a run. It can be used to home all axes at once or specific axes as needed.

load_labware(name, slot, module=None, **kwargs)[source]#

Load labware (containers, tipracks) into the protocol using HTTP API

Parameters:

check_run_status – If False, skip HTTP GET check when ensuring run exists. Passed to _ensure_run_exists and send_labware for optimization.

load_instrument(name, mount, tip_rack_slots, **kwargs)[source]#

Load pipette and store tiprack information using HTTP API.

Parameters:
  • check_run_status – If False, skip HTTP GET check when ensuring run exists. Passed to _ensure_run_exists for optimization.

  • update_pipettes – If False, skip calling _update_pipettes (for optimization during reload).

pick_up_tip(mount)[source]#
drop_tip(mount)[source]#
transfer(source, dest, volume, drop_tip=True, **kwargs)[source]#

Transfer fluid from one location to another using atomic HTTP API commands