Skip to content

fix(resources): make TipTracker.get_tip use pending state - #1206

Open
VivienP wants to merge 1 commit into
PyLabRobot:mainfrom
VivienP:fix/tip-state-consistency-309
Open

fix(resources): make TipTracker.get_tip use pending state#1206
VivienP wants to merge 1 commit into
PyLabRobot:mainfrom
VivienP:fix/tip-state-consistency-309

Conversation

@VivienP

@VivienP VivienP commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Align TipTracker.get_tip() with has_tip and VolumeTracker so public getters expose the same pending transactional state.
  • Fixes the contradictory has_tip / get_tip() views described in Tip state tracking allows for contradictory states #309 (logical tracker consistency only; hardware uncertainty is out of scope).
  • Adds regression tests for pending add and pending remove.

Test plan

  • python -m pytest pylabrobot/resources/tip_tracker_tests.py -q
  • Review: get_tip() now matches its docstring during an open transaction

Align get_tip() with has_tip and VolumeTracker so public getters expose the same transactional view. Add regression tests for pending add and remove.

Co-authored-by: Cursor <cursoragent@cursor.com>
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