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

Allow going back a line while hand-picking points #1573

Merged
merged 4 commits into from
Sep 14, 2023

Conversation

psavery
Copy link
Collaborator

@psavery psavery commented Sep 14, 2023

Previously, if the user accidentally right-clicked, we would move on
to the next line, and there would be no way to go back to the previous
line. This would mess up their hand-picking.

Now, the "Back" button is enabled, even when the current line has no
points, and clicking "Back" when the current line has no points results
in going back a line instead.

This PR also adds a couple of extra fixes where Laue spots were not
always being drawn correctly on the canvas while hand-picking
(they were not properly updated when the back button was pressed,
and they were not drawn on the detector after the first one).

Fixes: #1567

Previously, if the user accidentally right-clicked, we would move on
to the next line, and there would be no way to go back to the previous
line. This would mess up their hand-picking.

Now, the "Back" button is enabled, even when the current line has no
points, and clicking "Back" when the current line has no points results
in going back a line instead.

Fixes: #1567

Signed-off-by: Patrick Avery <[email protected]>
Even though the back button was working properly for the Laue points,
the canvas did not correctly reflect what was going on. This fixes
the issue.

Signed-off-by: Patrick Avery <[email protected]>
Previously, only Laue picks on the first detector would be drawn during
hand-picking. This was a bug.

Now, Laue picks are drawn for all detectors.

Signed-off-by: Patrick Avery <[email protected]>
The round-trip of going to cartesian and then back to angles was not
working properly if tvec_c was non-zero. This fixes the issue.

Signed-off-by: Patrick Avery <[email protected]>
Copy link
Member

@saransh13 saransh13 left a comment

Choose a reason for hiding this comment

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

LGTM

@psavery psavery merged commit 514e55c into master Sep 14, 2023
9 checks passed
@psavery psavery deleted the enable-going-back-a-line branch September 14, 2023 19:08
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.

Calibration point picker issue 2
2 participants