GoniometerAxis: Transformation is based on angle, not image number
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user