-
Notifications
You must be signed in to change notification settings - Fork 39
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
17ad892
to
80d7b17
Compare
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checks if the current stage position is equal to the given position. | |
Checks if the current stage position is near the given position. |
@pieleric it is ready to review |
… raise an error
Works on simulator
Tested on hardware