Repository navigation
MCLStage: a position near zero is not an error code - #103
Open
divimaestas wants to merge 1 commit into
Open
divimaestas wants to merge 1 commit into
divimaestas wants to merge 1 commit into
Conversation
checked_mcl_value rejected every negative value. Madlib overloads its return channel -- MCL_SingleReadN returns micrometers or one of the integer codes -1..-8 in HardwareReturn -- and the sign alone does not separate them: a Nano-Drive resting at its commanded zero reads a few nanometres below the sensor origin, which is a position. Now a negative value throws only when it is an integer code in HardwareReturn; non-finite values still throw. The sets cannot overlap: the stage travels 0 to 100 um, so a real position never reaches -1. Found on the TIRF rig: initialize(MCLStage) threw 'read axis 1 failed: invalid value (-0.005940918739356874)' with the stage parked at zero. Repeatability there measures about 2 nm at 50 um.
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.
checked_mcl_valuerejected every negative value. Madlib overloads its return channel —MCL_SingleReadNreturns micrometres or one of the integer codes -1..-8 inHardwareReturn— and the sign alone does not separate them: a Nano-Drive resting at its commanded zero reads a few nanometres below the sensor origin, which is a position, not a failure.A negative value now throws only when it is an integer code in
HardwareReturn; non-finite values still throw. The sets cannot overlap, since the stage travels 0–100 µm and a real position never reaches -1.Found on the TIRF rig:
initialize(MCLStage)threwread axis 1 failed: invalid value (-0.005940918739356874)with the stage parked at zero. Repeatability there measures about 2 nm at 50 µm.Full local suite: 8293 pass, 2 fail, 3 broken. The two failures are in
lightsource_modulation.jl— a 100 ms latency bound overshot by 2–7 ms under machine load; that testset passes 729/729 run alone on a quiet machine. The 3 broken are the existing@test_brokeningui.jl.