Repository navigation
v1 Mantis pump: prime on a v4 and a v3, recover on a v4, with the drop sensor and input volumes - #1703
Open
BioCam wants to merge 1 commit into
Open
v1 Mantis pump: prime on a v4 and a v3, recover on a v4, with the drop sensor and input volumes#1703BioCam wants to merge 1 commit into
Mantis pump: prime on a v4 and a v3, recover on a v4, with the drop sensor and input volumes#1703BioCam wants to merge 1 commit into
Conversation
…rop sensor and input volumes The Problem Pump.prime_chip and Pump.recover_reagent took only a volume and a liquid class, for the chip on the head. Every volume had to be spelled out, the drop sensor at the waste was never read, and a v3 refused both, although v3 captures show its prime. What changed - prime_chip(chip_number, *, volume, liquid_class, input_source, verify_sensor, drop_detection, consecutive_drops, max_cycles) checks everything first, then picks the chip in slot chip_number up (nothing moves when it is on the head) and primes it. recover_reagent(chip_number, *, volume, input_source, liquid_class) refuses unless that chip is on the head. Pump.is_primed says whether the chip on the head was primed: a prime sets it when it completes, a prime's start, a recovery and a placement clear it. - Without a volume, each takes input slot chip_number's default for input_source from the unit's inputs block (System/Inputs/Input<n>.config, now kept per input source); a prime without it the chip's default_prime_volume, a recovery refuses. - The v4 drop sensor (board 12, command 53 at setup; board 0's input 0 per drop) is a feature with drop_detected, consecutive_run and reset. drop_detection primes until consecutive_drops cycles in a row saw a drop, at most max_cycles (Dispense.config's cap), with the waits of 260811_startup_dispense_0.5_2.5uL_shutdown; by default it is on with a sensor, no volume and a low volume Hi-Fi chip. verify_sensor raises MantisPrimeError after a fixed prime whose sensor saw no drop. - A v3 primes a high volume chip as captured: from idle, whole large drops, along a waste path at Z's flag, without the v4's valves-closed write and vacuum 0 step, back along CHIP_CHANGER_ROUTE at Z's flag (V3_CHIP_CHANGER_ROUTE); otherwise it refuses and nothing moves. A v3 places its chip from where the prime left the head. A v3 recovery is not captured and stays refused. - The waste path is the file Dispense.config names, as the vendor reads it, else the generation's. - Tests pin the v4 prime, recovery and drop-detection frames as before, a prime's pick-up against the captured slot 1 pick-up, the v3 prime against 260601_homethenprime, and the defaults against the captured 100.4 uL prime and 400 uL recovery. - design.md lists the choices made where the captures leave one, and the open points. - design.md and the hello-world notebook describe the prime and the recovery and their open points. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
The Problem
Pump.prime_chipandPump.recover_reagenttook only a volume and a liquid class for the chip already on the head: every volume had to be spelled out, the drop sensor at the waste was never read, and a v3 refused both, although the v3 captures show its prime.PR Content
prime_chip(chip_number, *, volume=None, liquid_class=None, input_source="tube", verify_sensor=True, drop_detection=None, consecutive_drops=5, max_cycles=None)checks everything first, then picks up the chip in that slot (nothing moves when it is on the head) and primes it.recover_reagent(chip_number, *, volume=None, input_source="tube", liquid_class=None)refuses unless that chip is on the head.Pump.is_primed: set when a prime completes; cleared when a prime starts, by a recovery and by a placement.input_sourcefrom the unit's inputs, else a prime takes the chip'sdefault_prime_volume; a recovery without one refuses.Mantis.drop_sensor:drop_detected,consecutive_run,reset).drop_detectionprimes untilconsecutive_dropscycles in a row saw a drop, at mostmax_cycles(the unit'sDispense.configcap), with the waits the device makes;verify_sensorraises after a fixed prime whose sensor saw no drop.Dispense.confignames.recover_from_faultbrings it back.design.mdand the hello-world notebook: prime and recovery, the choices made where the captures leave one, and the open points.🤖 Generated with Claude Code