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] correct the check to find which axes are requested to move. #2948

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

Conversation

K4rishma
Copy link
Contributor

Now it correctly takes into account if the requested move is relative or not, to compare the axes

… it takes into account if the requested move is relative or not, to compare axes properly
@K4rishma K4rishma requested review from pieleric, patrickcleeve2 and nandishjpatel and removed request for patrickcleeve2 November 21, 2024 08:46
# Drop axes from the original position, which are not important because they have not moved
orig_pos = {a: orig_pos[a] for a, nv in pos.items() if nv != orig_pos[a]}
orig_pos = {a: orig_pos[a] for a, nv in target_pos.items() if nv != orig_pos[a]}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you really need this? At line 2327 one is already requesting a move to pos stating its rel. Maybe the time.sleep(0.1) is not enough in some cases?

Copy link
Contributor Author

@K4rishma K4rishma Nov 21, 2024

Choose a reason for hiding this comment

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

We need orig position a bit later when we start checking if the stage has moved to the requested position. Does that answer your question?

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