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] add check if tescan stage moves to the requested position otherwise… #2949

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

K4rishma
Copy link
Contributor

@K4rishma K4rishma commented Nov 22, 2024

… raise an error

Works on simulator
Tested on hardware

Copy link
Member

@pieleric pieleric left a comment

Choose a reason for hiding this comment

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

With so much "clean-up" mixed up with the actual change, it would be nicer to have all the clean-up as a separate commit.

src/odemis/driver/tescan.py Show resolved Hide resolved
@K4rishma K4rishma requested a review from pieleric November 25, 2024 12:45
@K4rishma K4rishma marked this pull request as ready for review December 18, 2024 12:10
@@ -1096,6 +1106,58 @@ def _pollXYZ(self):
except Exception:
logging.exception("Unexpected failure during XYZ polling")

def _checkPosition(self, ref_pos: Dict[str, float], pos: Dict[str, float], rel: bool = False):
"""
Checks if the current stage position is equal to the given position.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Checks if the current stage position is equal to the given position.
Checks if the current stage position is near the given position.

@K4rishma K4rishma marked this pull request as draft December 20, 2024 12:32
@K4rishma K4rishma marked this pull request as ready for review January 10, 2025 09:37
@K4rishma
Copy link
Contributor Author

@pieleric it is ready to review

@K4rishma K4rishma changed the title [DRAFT][fix] add check if tescan stage moves to the requested position otherwise… [fix] add check if tescan stage moves to the requested position otherwise… Jan 10, 2025
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