-
Notifications
You must be signed in to change notification settings - Fork 135
Fix .dispense96() with List of Wells and Add Tests
#855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix .dispense96() with List of Wells and Add Tests
#855
Conversation
… tests aspirate96 accepted List[Well] in its type check but never assigned it to `containers`, causing an UnboundLocalError. Added the missing `else` branch to match dispense96. Added tests for dispense96 with a 384-well plate quadrant: backend call verification, wrong well count validation, mixed parent validation, and volume tracking. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes the .dispense96() method to properly handle lists of wells as input, matching the existing behavior of .aspirate96(). The changes enable dispensing to arbitrary well lists (such as 384-well plate quadrants) and add comprehensive test coverage.
Changes:
- Added support for list of wells as input to
.dispense96()method - Improved error messages for invalid dispense operations
- Added three new test cases to verify well list functionality and error handling
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| pylabrobot/liquid_handling/liquid_handler.py | Added type checking and handling for list of wells in dispense96(), improved error message for plate with lid |
| pylabrobot/liquid_handling/liquid_handler_tests.py | Added import for 384-well plate and three new test cases covering well list dispense, mixed parent validation, and volume tracking |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…hub.com/BioCam/pylabrobot into fix-dispense96-with-list-wells-and-add-tests
|
Thanks! |
No description provided.