feat: add dispensing module with Formulatrix Mantis backend#987
Open
xbtu2 wants to merge 2 commits intoPyLabRobot:mainfrom
Open
feat: add dispensing module with Formulatrix Mantis backend#987xbtu2 wants to merge 2 commits intoPyLabRobot:mainfrom
xbtu2 wants to merge 2 commits intoPyLabRobot:mainfrom
Conversation
Add a new pylabrobot/dispensing/ module for chip-based contactless liquid dispensers, following PLR's Machine/Backend architecture pattern. New module structure: - Dispenser front-end (Machine subclass) - DispenserBackend ABC with setup/stop/dispense interface - DispenseOp frozen dataclass for operation parameters - ChatterboxBackend for device-free testing Mantis backend (pylabrobot/dispensing/mantis/): - MantisBackend implementing DispenserBackend - FmlxDriver for Formulatrix FMLX protocol over FTDI - MantisKinematics (inverse/forward kinematics for dual-arm SCARA) - MantisMapGenerator (homography-corrected plate coordinate mapping) - Sequence file parser for Mantis .seq files - Constants with proper IntFlag/IntEnum types 28 unit tests (all passing).
Member
|
sweet! thanks for the PR! mind if I rebase this onto the v1b1 architecture? |
- Fix isort I001: remove extra blank line in mantis_sequence_parser.py - Fix mypy arg-type: use explicit MantisMapGenerator construction instead of **dict unpacking (rows/cols need int, not float) - Fix mypy arg-type: cast coord dict values to float explicitly - Fix mypy no-any-return: cast dict.get() results to int in motor status helpers - Change get_well_coordinate return type from Dict[str, object] to Dict[str, Any] for correct downstream typing - Add 'Occured' to _typos.toml (firmware protocol string, not a typo)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
pylabrobot/dispensing/module for chip-based contactless liquid dispensers, following PLR's Machine/Backend architecture pattern. The Formulatrix Mantis is the first backend implementation.New Module Structure
Design Highlights
Dispenser(Machine)front-end with@need_setup_finisheddecoratorDispenserBackendABC withsetup(),stop(),dispense(ops)interfaceDispenseOpfrozen dataclass (resource, volume, chip)MantisBackend— full init sequence, chip lifecycle (attach/prime/dispense/detach), pressure controlFmlxDriver— accepts PLR'spylabrobot.io.ftdi.FTDIvia dependency injectionMotorStatusCode(IntFlag)witherror_mask(), PEP 8 namingchip_type_mapper instrument instanceUsage Example
Testing
All pre-commit hooks pass (ruff format, ruff check, typos).