Repository navigation
feat: every liquid handler PyLabRobot 1.0.0b1 drives, each simulated (1.0.0b2) - #7
Merged
Merged
Conversation
…(1.0.0b2) plr-ivoryos 1.0.0b2, still pinned to PyLabRobot 1.0.0b1 and nothing older. PyLabRobot 1.0 classes, each robot an IvoryOS instrument and each part it gives a class of its own another (robot.Part): - Opentrons OT-2 (opentrons/ot2.py), simulated on the Flex's robot-server, which now answers the OT-2's pipette query and homing and remembers where each pipette was sent. - Hamilton STAR, STARlet, STARplus (hamilton/star.py): pipettes, 96- or 384-head, iSWAP, CoRe grippers, autoload; simulated with PyLabRobot's STARSimulationDriver. - Hamilton Prep (hamilton/prep.py): pipettes, 8-channel head, CoRe grippers, heater shaker, lights; simulated with PyLabRobot's PrepSimulationDriver. pylabrobot.legacy, for the robots PyLabRobot has no 1.0 class for yet (legacy.py): the Nimbus, Vantage and Tecan EVO, and any legacy backend, as one instrument with every LiquidHandler operation; simulated with the legacy LiquidHandlerChatterboxBackend. The worktable file and the Labware panel take every one of these decks: Hamilton tracks, Tecan rails, the Prep's spots, the OT-2's slots, with a ready-made worktable for each. The bridge offers more of PyLabRobot: an argument typed labware or a coordinate (drop_tips on a STAR, move_plate) as the labware, Union[str, float], a carrier position by name; it leaves out the resource tree's own methods; and it shows a Coordinate or enum default as data, which IvoryOS NextGen could not store before. docs/simulators.md says which robots PyLabRobot simulates, what we simulate ourselves, and which gaps belong upstream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
IvoryOS NextGen offers an enum's members by value (GripDirection: 1 to 4), so a default given by
name ("FRONT") matched none of them. The name is still taken as input.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hub/deck.json loads every liquid handler, simulated, in IvoryOS NextGen; hub_entries.py turns IvoryOS's schema dump into the class schemas (schemas-1.0.0b2.json) and one SQL transaction that updates the Hub's modules, versions, parts and Labware plugin from them (update-1.0.0b2.sql). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Labware page's empty state lists every robot, and clears main's layout line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- STAR, Prep, OT-2, Nimbus, Vantage, EVO and the legacy LiquidHandler take `layouts_folder`, as the Flex does. - A saved layout's equipment is checked by the robot it is loaded on (STAR, Prep, OT-2), and a change to what is fitted asks for a restart on any robot. - docs/liquid-handlers.md says where each robot is now that 1.0.0b2 has them all; the README's Labware panel and changelog say so too. - Tests: save, switch, revert and export on each robot; an OT-2 layout with other pipettes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What this does
plr-ivoryos 1.0.0b2 supports every liquid handler PyLabRobot 1.0.0b1 drives, all on one PyLabRobot (
pylabrobot==1.0.0b1, nothing older), so decks sharing an environment no longer conflict.plr_ivoryossimulated=Trueopentrons.Flexopentrons.OT2hamilton.STARSTARSimulationDriverhamilton.PrepPrepSimulationDriverlegacy.*pylabrobot.legacyLiquidHandlerChatterboxBackendrobot.Part.LiquidHandleroperation, as in 0.2.drop_tipsandmove_plateare now steps on STAR, Prep and legacy robots (their argument takes labware or a coordinate). Resource-tree methods are no longer offered as steps.Coordinateand enum defaults are shown to IvoryOS as data, which fixes NextGen's "Could not record the deck version: Object of type Coordinate is not JSON serializable".serialize(), Nimbus has notrash, the 1.0 iSWAP has no plate move).Checked
tests/test_robots.py).ivoryos-edge0.1.2) from adeck.jsonwith all eight robots plus the Labware plugin: 23 instruments load with no errors, and a transfer on each robot runs through/api/execute, IvoryOS's own argument casting and safety guard. The Labware panel draws every worktable and updates live (volumes, liquids, tips).IvoryOS Hub
hub/makes the Hub entries from what IvoryOS itself reads.hub/deck.jsonloads every liquid handler, simulated, in IvoryOS NextGen.hub_entries.pyturns IvoryOS's schema dump intoschemas-1.0.0b2.json(25 classes) andupdate-1.0.0b2.sql, one transaction that:plr-ivoryos==1.0.0b2and their 1.0 classes;module_versionsrow per module (with the old 0.2 install kept as a non-current row) and theirmodule_parts;Dry-run on the live Hub inside a transaction that was rolled back: it applies cleanly. Not applied yet: the rows install by version, so it waits until 1.0.0b2 is on PyPI.
After merging
hub/update-1.0.0b2.sql(seehub/README.md).🤖 Generated with Claude Code