Skip to content

Fix simulated STAR last LLD heights - #1200

Merged
BioCam merged 2 commits into
PyLabRobot:mainfrom
VivienP:fix/star-chatterbox-query-state
Aug 21, 2026
Merged

Fix simulated STAR last LLD heights#1200
BioCam merged 2 commits into
PyLabRobot:mainfrom
VivienP:fix/star-chatterbox-query-state

Conversation

@VivienP

@VivienP VivienP commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

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

@rickwierenga
rickwierenga requested a review from BioCam August 15, 2026 23:41
@rickwierenga

Copy link
Copy Markdown
Member

thanks for the PR!

@BioCam can you review/merge this?

…ection

Match the Google-style docstring shape of its hardware counterpart,
`STARBackend.request_pip_height_last_lld`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@BioCam
BioCam merged commit 598b58f into PyLabRobot:main Aug 21, 2026
21 checks passed
@BioCam

BioCam commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Thank you @VivienP !

Great addition to the simulation engine

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.

3 participants