Repository navigation
Flex: refuse a host beside simulated, fail a pickup from a used column, fix install lines, add test CI - #5
Merged
Conversation
…id not Flex(simulated=True, host=...) ignored the host and ran the simulator, and every step reported success. The Hub form opens with simulated ticked, so filling in a host and forgetting to untick it looked like a run on that robot. It is now refused, saying so. Only host and serial_port count: the form always sends the default port. PyLabRobot skips spots it knows are empty and still sends an 8- or 96-channel pickup, and the simulator always reported a tip on, so a pickup from a used column succeeded and the failure appeared at the next step as "No tip mounted". On a robot the tip sensor fails it. The simulator now reads absent when no spot under the nozzles holds a tip, so PyLabRobot's own check fails it at the pickup. It asks PyLabRobot's record of the rack rather than keeping its own, so a rack swapped on the worktable is full at once, and anything unknown still finds a tip: it can pass a pickup a robot would fail, but never fails one a robot would pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- examples/flex_simulated.py said `pip install plr-ivoryos ivoryos-edge`, which installs 0.2.0: the script then fails with No module named 'plr_ivoryos.opentrons'. - The README's `--pre` also lets every other dependency be a pre-release (it installed httpx 1.0.dev6). `plr-ivoryos==1.0.0b1` gets the same PyLabRobot without it. uv needs PyLabRobot named too. - The README now says only the simulator has been run, and what PyLabRobot itself marks as untested on hardware. - requirements.txt still said pylabrobot>=0.2.2,<1.0, against pyproject's ==1.0.0b1, and nothing used it. Removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The only workflow was publish, so nothing ran the tests on a pull request or before a release. Python 3.10, 3.12 and 3.14 on each, and an import of the Labware view, the one part that needs IvoryOS. 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.
Summary
Found while checking the Opentrons Flex end to end from the live Automation Hub, on the current edge.
Two behaviour fixes
Flex(simulated=True, host=...)is refused. It used to ignore the host and run the simulator, with every step reporting success. The Hub form opens withsimulatedticked, so filling in a host and forgetting to untick it looked like a run on that robot. Onlyhostandserial_portcount, because the form always sends the defaultport.absentwhen no spot under the nozzles holds a tip, so PyLabRobot's own check raisesTip pickup not detected.Docs
examples/flex_simulated.pysaidpip install plr-ivoryos ivoryos-edge. That installs 0.2.0, and the script then fails withNo module named 'plr_ivoryos.opentrons'.--prealso lets every other dependency be a pre-release (it installedhttpx 1.0.dev6).pip install plr-ivoryos==1.0.0b1gets the same PyLabRobot without it. The README also says uv needs PyLabRobot named.FlexHead96operations and onFlexHead1aspirate and dispense, with none onFlexHead8.requirements.txtsaidpylabrobot>=0.2.2,<1.0, against pyproject's==1.0.0b1, and nothing used it. Removed.CI
tests.ymlruns the tests on Linux, Windows and macOS, on Python 3.10, 3.12 and 3.14, plus an import of the Labware view. The only workflow before this was publish.No version bump:
pyproject.tomlstays at 1.0.0b1.Checked
ivoryos-nextmain), the edge's labware and parts tests pass (28).simulatedis listed under "Not loaded" with the new message;pip install "plr-ivoryos[serial]==1.0.0b1"andpip install plr-ivoryos==1.0.0b1 ivoryos-edgeresolve in a dry run, with no pre-release other than plr-ivoryos and PyLabRobot.Intermittent crashes on the machine this was tested on. The suite sometimes dies there with an access violation at an unrelated point, or an impossible error such as
Coordinate.__init__() got multiple values for argument 'x'. Alternating run by run, this branch and untouchedmaineach went wrong 4 times in 18, so this PR does not cause it. That workstation has a CPU with known faults, and it logged a corrected hardware error during these runs, though that does not prove the cause. CI's clean machines are the check on this.Not in this PR
modules,module_versionsand the Labware plugin, and the Flex's Hub description, which says it "stays simulated even with a host filled in".pip install plr-ivoryosstill gets 0.2.0 with no upper limit on PyLabRobot, so that install breaks when PyLabRobot 1.0 final ships. plr-ivoryos 0.2.1: require PyLabRobot below 1.0, and connection extras #2 cannot land on thismain, which is now 1.0: it needs a 0.2.x branch and a release.🤖 Generated with Claude Code