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

fix bug finding focus in stack with only one slice #162

Merged
merged 6 commits into from
Mar 22, 2024

Conversation

ieivanov
Copy link
Contributor

Fixing bug related to focus finding in stack with only one slice. in_focus_index=0 should be returned by focus_from_transverse_band, not _check_focus_inputs. _check_focus_inputs could also be refactored into two functions that 1. check the inputs and 2. determine the correct optimization function. This will remove possible confusion on _check_focus_inputs returning a callable.

@talonchandler
Copy link
Collaborator

Thanks for catching and fixing, @ieivanov. I followed your refactoring suggestion, and I moved the single-slice check to the top level so that it can return 0 directly.

@ziw-liu ziw-liu added the bug Something isn't working label Mar 19, 2024
@ieivanov
Copy link
Contributor Author

Looks good! Merging.

@ieivanov ieivanov merged commit d08f296 into main Mar 22, 2024
3 checks passed
@ziw-liu ziw-liu deleted the bugfix/find-fosuc-single-slice branch June 11, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants