Skip to content

Labware panel: what is fitted, on every robot; grab labware anywhere - #10

Open
ivoryzh wants to merge 1 commit into
mainfrom
feat/labware-view-equipment
Open

ivoryzh wants to merge 1 commit into
mainfrom
feat/labware-view-equipment

Conversation

@ivoryzh

@ivoryzh ivoryzh commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

What changed

What is fitted, findable and on every robot. The panel's header names what is fitted ("Left: Flex 8-Channel 1000 µL, Right: …, Gripper"), and a click on it opens edit mode with the equipment controls showing (also ⋯ → Equipment…, formerly "Pipettes and gripper…", Flex only). Each robot now describes its equipment as fields (_equipment_fields: a choice or a toggle) that the page draws, so the page no longer knows a Flex's mounts.

Robot In the panel
Flex pipette on each mount or the 96-channel head, gripper, trash slot (as before)
OT-2 pipette on each mount (new; the file already had it)
Simulated STAR channels (2, 4, 8 on a STARlet; 2 to 16 on a STAR or STARplus), 96-head / 384-head / none, iSWAP, autoload
Real STAR, Prep shown, not changed: built into the robot

A simulated STAR has what its file says. It used to be PyLabRobot's recording of the frame whatever the file said (8 channels, 96-head, iSWAP, autoload). simulated_configuration now changes the recording to match (channel list and count, head, iSWAP, autoload flags), the way PyLabRobot derived its own other recordings, and caches it by content in the temp folder. One channel is not offered: PyLabRobot's simulator divides by zero with it. A STARplus has no 384-head or autoload recording to simulate. At start, asking for what the simulator cannot have falls back to the recording with a printed note (the Hub's STAR form ticks autoload by default, so a STARplus must still start); a change from the panel is refused with the reason. Switching frames keeps what the new frame can have. channels is a new optional key in the STAR's equipment; a real STAR's reported count is checked against it at setup. It is left out of _parts_read, since the channel count does not change the instruments.

Grab labware anywhere; look closer to see wells. Each labware is one <g data-ware> group, so it is dragged by any part of it (wells and tips were siblings of the outline, so only the outline grabbed) and clicked anywhere to zoom in. Seen whole, hovering gives the labware's name and a one-line summary; zoomed in, each well or tip says what it holds at once in a small readout following the pointer (replacing per-well native tooltips, which were unreadable at whole-deck size). Escape or Whole worktable goes back.

Behaviour change to note

A simulated STAR now honours the file's equipment: unticking iSWAP in the Hub's STAR form removes it from the simulation. The Hub form has no channel-count field yet.

Checked

  • 176 tests pass (new: OT-2 mounts changed from the panel and kept on reload; simulated STAR channels/head/iSWAP, reload, refusals, frame switching, the STARplus fallback; real STAR and Prep shown not changed; the header summary).
  • In the browser on a deck with a simulated Flex, OT-2 and STAR: dragged a plate by a well from D2 to C3; clicked the reservoir on a well and hovered it (reservoir[A2] · 9000 µL (dye 9000)); changed the OT-2's right pipette; set the STAR to 4 channels with no head; after Restart deck the deck had no star_head96, picking up 4 tips ran, and 8 were refused by PyLabRobot.

Not released: this would go out as 1.0.0b4.

🤖 Generated with Claude Code

…here

The Labware panel names what is fitted to the robot in its header, and a
click on it opens where it is changed. Each robot describes its equipment
as fields (a choice or a toggle) that the page draws, so the page no longer
knows a Flex's mounts:

- Flex: the pipette on each mount or the 96-channel head, the gripper, the
  trash slot (as before, now findable).
- OT-2: the pipette on each mount (the file had it; the panel did not).
- Simulated STAR: 2 to 16 channels, a 96-head, a 384-head or none, the
  iSWAP and the autoload, as the file says. PyLabRobot's recording of the
  frame is changed to match (simulated_configuration), so a dry run is the
  STAR it stands in for. A start asking for what the simulator cannot have
  (an autoload on a STARplus) falls back to the recording with a note; a
  change from the panel is refused.
- Real STAR and Prep: shown, not changed (built into the robot).

In the panel, a labware is one thing to the pointer: dragged by any part of
it, wells and tips included, and clicked anywhere to look closer. Looking
closely, each well or tip says what it holds as the pointer passes over it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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