Skip to content

Fix simulated STAR last LLD heights - #1200

Open
VivienP wants to merge 1 commit into
PyLabRobot:mainfrom
VivienP:fix/star-chatterbox-query-state
Open

Fix simulated STAR last LLD heights#1200
VivienP wants to merge 1 commit into
PyLabRobot:mainfrom
VivienP:fix/star-chatterbox-query-state

Conversation

@VivienP

@VivienP VivienP commented Aug 13, 2026

Copy link
Copy Markdown

Summary

Update STARChatterboxBackend.request_pip_height_last_lld() to report the
heights produced by simulated liquid-level detection instead of returning the
hardcoded list(range(12)).

The chatterbox now keeps a per-channel latch of the latest simulated absolute
LLD height. _run_lld_on_channel_batch() updates that state using the
measurement it already computes, and request_pip_height_last_lld() returns it.

This keeps the simulated query consistent with the existing state-backed LLD
path without changing the public API.

Related to #934.

Tests

Added regression coverage for:

  • one returned value per configured channel before any LLD
  • initial values of 0.0
  • updating the correct physical channel after probe_liquid_heights()

Validation:

  • STAR_tests.py: 122 passed, 81 subtests
  • legacy/liquid_handling: 479 passed, 1 skipped, 101 subtests
  • Ruff: clean
  • mypy: no new errors; 6 existing errors remain elsewhere in the repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant