Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes a logic bug in Pyramidal storage #139

Merged
merged 2 commits into from
Oct 26, 2023
Merged

Fixes a logic bug in Pyramidal storage #139

merged 2 commits into from
Oct 26, 2023

Conversation

nicost
Copy link
Member

@nicost nicost commented Oct 25, 2023

Fixes a logic bug encountered in Micro-Magellan. The code in populateNewResolutionLevel (called when increasing the resolution level), calls addToLowResStorage with the row and column index of the previous level rather than the top level (as that code expected before this PR). This would remarkably work most of the time, but there were clearly times this would break. Since populateNewResolutionLevel had no way of knowing the original row and column, I changed the functions addToLowResStorage and downsample to work with the row and column of the previous level rather than that of the top level image. This fixes the behavior observed in Micro-Magellan.

Most (all?) other changes are cosmetic and will help to make this code more maintainable in the future.

@nicost nicost changed the title Fixes a logic bug in Pyrimdal storage Fixes a logic bug in Pyramidal storage Oct 25, 2023
@henrypinkard
Copy link
Member

You found it--Awesome!

@henrypinkard henrypinkard merged commit bf79154 into main Oct 26, 2023
6 checks passed
@henrypinkard
Copy link
Member

If you bump the version in the POM this will automatically propagate up to the ivy file in micro-manager

@nicost nicost deleted the pyramidFixes branch October 27, 2023 17:23
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.

None yet

2 participants