feat: motor stacking, auto-exclude, refined stitching#98
Open
FIrgolitsch wants to merge 3 commits intopr-a-build-toolingfrom
Open
feat: motor stacking, auto-exclude, refined stitching#98FIrgolitsch wants to merge 3 commits intopr-a-build-toolingfrom
FIrgolitsch wants to merge 3 commits intopr-a-build-toolingfrom
Conversation
This was referenced Apr 1, 2026
c3092e2 to
a82b899
Compare
7a4c344 to
24fa7d7
Compare
24fa7d7 to
dc806fe
Compare
e4c127f to
a48129d
Compare
dc806fe to
8f1637e
Compare
82b44be to
ce8e35d
Compare
8f1637e to
7a4dd66
Compare
7a4dd66 to
e939493
Compare
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.
PR #98 — Motor Stacking & Refined Stitching
Adds motor-based slice stacking and the refined 3D stitching used by the new reconstruction workflow. Two commits: initial feature drop and a follow-up that smooths drift, adds a per-slice reliability flag, and tightens the auto-exclude logic.
New library modules
linumpy/stitching/motor.py— motor-only stacking. Adds atransform_sourcecolumn (motor/registered/motor+refined), a per-slicereliableflag, drift smoothing (bounded low-pass on cumulative motor z), and drift / sigma limits used to gate auto-exclude.linumpy/stitching/stacking.py— enhanced stacking with confidence gating, z-consistency enforcement between neighbouring slice pairs, and configurable drift limits.New scripts
linum_stack_motor_only.py— motor-only stacking CLIlinum_stack_slices_motor.py— motor-first stacking with optional registration refinement, drift smoothing, rehoming-aware reset (consumeslinum_detect_rehomingoutput from PR feat: utility modules, preprocessing improvements, galvo correction #97)linum_stitch_motor_only.py— motor-only stitch driverlinum_stitch_3d_refined.py— refined 3D stitching (motor + registration + z-consistency)linum_auto_exclude_slices.py— automatic slice exclusion based on drift / sigma / reliabilityUpdated scripts
linum_stack_slices_3d.py,linum_stack_slices.py,linum_stitch_3d.py— integrated with the new moduleslinum_align_mosaics_3d_from_shifts.py— consumes the newtransform_sourcecolumnTests
linumpy/tests/test_stitching_motor.py,test_stitching_stacking.pyDependencies
linum_stack_slices_motor.pyintegrates withlinum_detect_rehoming.pyfrom PR feat: utility modules, preprocessing improvements, galvo correction #97