pylabrobot.thermo_fisher.kingfisher.flex.KingFisherFlex.run_protocol#
- async KingFisherFlex.run_protocol(protocol: FlexBoundProtocol, *, operator_timeout: float | None = None, handle_action: Callable[[FlexAction], Awaitable[bool]] | None = None, acknowledgement: Literal['host', 'instrument'] | Callable[[FlexAction], Literal['host', 'instrument']] | None = None) FlexRunResult#
Stream a supported BindIt export and await terminal completion.
Requires
read_flex_bdz(source).bind_plates({bdz_name: plr_plate, ...}). Every BDZ layout plate must be designated, including the tip-comb plate. Raw exports and paths cannot be executed without bindings. Reconcile initial inventory explicitly, even when empty. Plates may be loaded as the run proceeds.handle_actionhandles every load, unload and intervention.acknowledgementselects host confirmation or physical Start, either for the run or through a synchronous per-action selector. The default is host when a handler is supplied, otherwise instrument. Selection occurs before sending PAU. Instrument-mode handlers must awaitwait_for_physical_start(action)exactly once, directly or through an acknowledgment provider, before returning True. Requests include the bound plate, presented holder and original script line. Handlers must update modeled transfers and clear the motion envelope before returning True. Occupancy is checked before any subsequent command. Assignment events alone never advance the script. Preloaded matching plates are accepted, but still require confirmation. Without a handler, the original PAU is sent; resource updates must be completed externally before physical Start. Preflight finishes before any I/O. Initialization must have been requested separately. Host acknowledgment omits PAU; instrument acknowledgment preserves it. Pause messages are descriptive text, not timers. This does not release an instrument PAU already in progress. Host waits emit host_load/host_unload and host_prompt_completed, never a fictitious PAU completion. Dispensing pauses include required per-well additions in both the prompt label andprompt.additions. Confirmation means those additions are complete. Heating commands set a target without waiting for it to be reached; temperature reports are telemetry, not command completion. Documented setpoints are supported; hardware validation covers 37 C.operator_timeout=Nonewaits indefinitely while the reader continues to detect disconnects and errors. Cancellation does not abort hardware: it invalidates the session and requires explicit recovery.- Parameters:
protocol (FlexBoundProtocol)
operator_timeout (float | None)
handle_action (Callable[[FlexAction], Awaitable[bool]] | None)
acknowledgement (Literal['host', 'instrument'] | ~collections.abc.Callable[[~pylabrobot.thermo_fisher.kingfisher.flex.actions.FlexAction], ~typing.Literal['host', 'instrument']] | None)
- Return type: