pylabrobot.formulatrix.mantis.driver.simulator.MantisSimulationLedBar.show_progress#

async MantisSimulationLedBar.show_progress(*, done: int, total: int) → None#

Light round(number_of_leds * done / total) LEDs from the left in dispense_progress_color, at least one once done > 0, the rest off; nothing is sent when that many are already lit.

Each frame holds the link about 62 ms (measured on a v4): show at most number_of_leds frames per action.

Parameters:
  • done (int) – the steps done, 0 to total.

  • total (int) – the steps, at least 1.

Raises:

ValueError – if total is below 1, or done below 0 or above total; nothing is sent.

Return type:

None