pylabrobot.bmg_labtech.vantastar.VANTAstarDevice.estimate_duration#

async VANTAstarDevice.estimate_duration(read: Callable[[], Awaitable[Any]]) → int#

The run time in s the reader expects for a read, without reading: read is called as usual, e.g. lambda: reader.absorbance.measure([450]), and ends at the read’s RUN with the reader’s estimate (VANTAstarDriver.estimate_duration). Shaking before the read and pause_before_reading are skipped and left out of the estimate; nothing moves.

Raises:
  • ValueError – if read ends without a read.

  • RuntimeError – if read sends a command other than a read’s (a drawer move, a gain and focus adjustment), or as the read raises it (the drawer is open, no plate).

Parameters:

read (Callable[[], Awaitable[Any]])

Return type:

int