GoniometerAxis: Transformation is based on angle, not image number

This commit is contained in:
2026-01-30 14:02:10 +01:00
parent 7693b95008
commit b7b38b8e7d
7 changed files with 15 additions and 11 deletions
+4 -2
View File
@@ -29,8 +29,10 @@ IndexAndRefine::IndexingOutcome IndexAndRefine::DetermineLatticeAndSymmetry(Data
// get rotated lattice
auto gon = experiment.GetGoniometer();
if (gon)
outcome.lattice_candidate = result->lattice.Multiply(gon->GetTransformation(-msg.number));
if (gon) {
const float angle_deg = gon->GetAngle_deg(msg.number) + gon->GetWedge_deg() / 2.0f;
outcome.lattice_candidate = result->lattice.Multiply(gon->GetTransformationAngle(-angle_deg));
}
outcome.experiment.BeamX_pxl(result->geom.GetBeamX_pxl())
.BeamY_pxl(result->geom.GetBeamY_pxl())