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] Fast-EM optical autofocus tests #2840

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

tepals
Copy link
Contributor

@tepals tepals commented Jul 24, 2024

Fix an issue in the binary autofocusing algorithm that caused the optical autofocus to fail.

@tepals tepals changed the title Sdev 1899 fix optical autofocus tests [fix] Fast-EM optical autofocus tests Jul 24, 2024
src/odemis/driver/piezomotor.py Outdated Show resolved Hide resolved
@tepals tepals marked this pull request as draft August 14, 2024 07:55
@tepals tepals force-pushed the SDEV-1899-fix-optical-autofocus-tests branch from 719abad to 06f7c56 Compare August 14, 2024 07:55
src/odemis/driver/piezomotor.py Outdated Show resolved Hide resolved
src/odemis/driver/test/piezomotor_test.py Outdated Show resolved Hide resolved
…psize is reached

Break the loop after moving to the best position: Otherwise the focus will not be at the best position
when clipping left and right have caused left and right to be equal, but them not being equal to the center / best position.
@tepals tepals force-pushed the SDEV-1899-fix-optical-autofocus-tests branch 2 times, most recently from 5a4f448 to aa9ce02 Compare November 15, 2024 14:34
@tepals
Copy link
Contributor Author

tepals commented Nov 15, 2024

I've split the PR into two and left the autofocus fix here, that part should be ready to review.

I moved the other commits to a different branch, to look into at a later stage.
https://github.com/delmic/odemis/compare/master...tepals:odemis:SDEV-1899-fix-piezomotor-simulated-movement?expand=1

@tepals tepals marked this pull request as ready for review November 15, 2024 14:42
tepals added a commit to tepals/odemis that referenced this pull request Nov 15, 2024
@tepals tepals merged commit 2bad431 into delmic:master Nov 20, 2024
6 checks passed
@tepals tepals deleted the SDEV-1899-fix-optical-autofocus-tests branch November 20, 2024 10:42
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.

3 participants