Enable .probe_liquid_height() to Detect Absence of Liquid
#847
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.
Problem
Currently
STARBackend.probe_liquid_heights()will error out if no liquid is detected instead of correctly detecting the absence of liquid (i.e. liquid_height=0.0 mm).Consequently,
STARBackend.probe_liquid_volumes()is also broken, and dispensing with cLLD into volume-non-deterministic destination containers is a hazard that can break aPs.Solution / This PR
STARBackend.probe_liquid_heights()already calculates the lowest immersion position to be the well cavity bottom for safety. If a container is empty this PR introduces the catching of the specific firmware error and converts it into liquid_height=0.0mm.At the same time, a warning is logged for these containers since it is possible to have edge cases (e.g. if cLLD: low-volume liquids don't have enough dissipation volume to be detected; ultra-pure liquids are non-conductive)