Skip to content

[FIX] fix KeyError in Stitcher when do_intensity_rescale='full_image'#382

Open
sophiamaedler wants to merge 9 commits intomainfrom
fix_377
Open

[FIX] fix KeyError in Stitcher when do_intensity_rescale='full_image'#382
sophiamaedler wants to merge 9 commits intomainfrom
fix_377

Conversation

@sophiamaedler
Copy link
Collaborator

Fixes #377

Copilot AI review requested due to automatic review settings March 1, 2026 19:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a crash in the stitching pipeline when do_intensity_rescale="full_image" by ensuring the per-channel rescale_range lookup uses channel IDs (as produced/maintained by the reader) during mosaic assembly.

Changes:

  • Use self.reader.rescale_range[channel] (channel-id keyed) instead of self.rescale_range[channel] during full-image rescaling in mosaic assembly.
  • Apply the same fix to the parallel stitching path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KeyError in Stitcher when do_intensity_rescale='full_image'

2 participants