Skip to content

feat: every liquid handler PyLabRobot 1.0.0b1 drives, each simulated (1.0.0b2) - #7

Merged
ivoryzh merged 5 commits into
mainfrom
feat/plr-1.0-all-instruments
Nov 23, 2026
Merged

ivoryzh merged 5 commits into
mainfrom
feat/plr-1.0-all-instruments

Conversation

@ivoryzh

@ivoryzh ivoryzh commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Robot plr_ivoryos PyLabRobot simulated=True
Opentrons Flex opentrons.Flex 1.0 class our robot-server (unchanged)
Opentrons OT-2 (new) opentrons.OT2 1.0 class our robot-server, OT-2 flavour
Hamilton STAR / STARlet / STARplus (new) hamilton.STAR 1.0 class PyLabRobot's STARSimulationDriver
Hamilton Prep (new) hamilton.Prep 1.0 class PyLabRobot's PrepSimulationDriver
Hamilton Nimbus, Vantage; Tecan EVO; any legacy backend (new) legacy.* pylabrobot.legacy legacy LiquidHandlerChatterboxBackend
  • 1.0 robots follow the Flex's pattern: the robot is an instrument, and each part PyLabRobot gives a class of its own (channels, 96-head, iSWAP, gripper, …) is another, now a shared robot.Part.
  • Legacy robots are one instrument with every LiquidHandler operation, as in 0.2.
  • The worktable file and Labware panel handle Hamilton tracks, Tecan rails, Prep spots and OT-2 slots, each with a starter worktable.
  • Bridge: drop_tips and move_plate are now steps on STAR, Prep and legacy robots (their argument takes labware or a coordinate). Resource-tree methods are no longer offered as steps. Coordinate and 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".
  • docs/simulators.md: which robots PyLabRobot simulates, which we do, and the upstream gaps (Tecan tip racks can't be built, four decks can't be read back from their own serialize(), Nimbus has no trash, the 1.0 iSWAP has no plate move).

Checked

  • 76 tests pass (29 new, in tests/test_robots.py).
  • IvoryOS NextGen (ivoryos-edge 0.1.2) from a deck.json with 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).
  • Not checked: any real robot. In particular, asking a real STAR or Prep what's fitted (setup without initializing) has not been run on hardware.

IvoryOS Hub

hub/ makes the Hub entries from what IvoryOS itself reads. hub/deck.json loads every liquid handler, simulated, in IvoryOS NextGen. hub_entries.py turns IvoryOS's schema dump into schemas-1.0.0b2.json (25 classes) and update-1.0.0b2.sql, one transaction that:

  • points the 7 existing liquid-handler rows (OT-2, STAR, Nimbus, Vantage, EVO, Simulated Liquid Handler, Flex) at plr-ivoryos==1.0.0b2 and their 1.0 classes;
  • adds Hamilton Prep (module and device);
  • adds a module_versions row per module (with the old 0.2 install kept as a non-current row) and their module_parts;
  • links the Labware plugin to all of them.

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

  1. Publish 1.0.0b2 to PyPI (the release workflow).
  2. Apply hub/update-1.0.0b2.sql (see hub/README.md).

🤖 Generated with Claude Code

ivoryzh and others added 5 commits November 23, 2026 13:58
…(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>
@ivoryzh
ivoryzh merged commit c0fc12f into main Nov 23, 2026
9 checks passed
@ivoryzh
ivoryzh deleted the feat/plr-1.0-all-instruments branch November 23, 2026 23:07
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