Skip to content

Conversation

@psavery
Copy link
Collaborator

@psavery psavery commented Dec 11, 2024

For relative constraints, when tilts are applied to the detectors, the center of rotation is an additional setting that can be varied. Specifying a center of rotation that better matches what is expected in the experiment will result in calibrations with greater accuracy and speed.

For example, for FIDDLE, if there is any tilt whatsoever, then the detectors must have rotated about the lab origin (0, 0, 0). Requiring the detectors to be rotated about the origin ensures that the calibration will match what is expected from the experiment.

For other detector setups, such as the Eiger, the mean center of the instrument better matches what is expected if a tilt must be applied.

This PR also sets the default settings for FIDDLE calibration to use instrument rigid body (system) constraints, as well as using the Origin for the center of rotation.

Depends on: HEXRD/hexrd#735

@psavery
Copy link
Collaborator Author

psavery commented Dec 18, 2024

Need to change sliders to show system tvecs/tilts (instead of a single detector one), and save those system tvecs/tilts within the hexrdgui settings, and use them as well in the calibration.

For relative constraints, when tilts are applied to the detectors, the
center of rotation is an additional setting that can be varied.
Specifying a center of rotation that better matches what is expected in
the experiment will result in calibrations with greater accuracy and
speed.

For example, for FIDDLE, if there is any tilt whatsoever, then the
detectors must have rotated about the lab origin (0, 0, 0). Requiring
the detectors to be rotated about the origin ensures that the
calibration will match what is expected from the experiment.

For other detector setups, such as the Eiger, the mean center of the
instrument better matches what is expected if a tilt must be applied.

This PR also sets the default settings for FIDDLE calibration to use
instrument rigid body (system) constraints, as well as using the
Origin for the center of rotation.

Depends on: HEXRD/hexrd#735

Signed-off-by: Patrick Avery <[email protected]>
Previously, slider transforms could only be locked if ROI subpanels
with groups were used.

Now, slider transforms can be locked regardless. An
"Instrument Rigid Body" lock will results in the entire instrument
being transformed together. "Group Rigid Body" lock is only available
if every detector has a specified group, and it allows detectors within
a group to be transformed together.

Additionally, the center of rotation may be specified. It defaults to
the "Mean Center", which is the mean center of the instrument (for
"Instrument Rigid Body") or the mean center of the group (for "Group
Rigid Body"). "Origin" is the lab origin at (0, 0, 0).

Signed-off-by: Patrick Avery <[email protected]>
These will be saved in the state file and re-used in the calibration
dialog. These numbers are essential for FIDDLE, so it's important that
they stay recorded in the state file and are retrievable.

Signed-off-by: Patrick Avery <[email protected]>
@psavery psavery force-pushed the calibration-center-of-rotation branch from b689875 to 830855b Compare December 20, 2024 20:43
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

@saransh13 saransh13 merged commit 06e84e2 into master Dec 24, 2024
9 checks passed
@saransh13 saransh13 deleted the calibration-center-of-rotation branch December 24, 2024 01:33
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