GoniometerAxis: Transformation is based on angle, not image number
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 12m32s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 13m30s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 13m45s
Build Packages / Generate python client (push) Successful in 13s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 13m58s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 14m5s
Build Packages / Build documentation (push) Successful in 30s
Build Packages / build:rpm (rocky8) (push) Successful in 14m12s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 14m41s
Build Packages / build:rpm (rocky9) (push) Successful in 14m47s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m26s
Build Packages / Unit tests (push) Successful in 51m37s

This commit is contained in:
2026-01-23 09:54:45 +01:00
parent 40767c4910
commit 555fcb809b
7 changed files with 15 additions and 11 deletions
+2 -1
View File
@@ -576,7 +576,8 @@ TEST_CASE("XtalOptimizer_rotation") {
// Predict reflections for images at 0-30 deg.
for (int img = 0; img < 10; ++img) {
// For a rotated image, per-image lattice is obtained as Multiply(rot.transpose())
const RotMatrix rot = axis.GetTransformation(img);
const float angle_deg = axis.GetAngle_deg(img) + axis.GetWedge_deg() / 2.0f;
const RotMatrix rot = axis.GetTransformationAngle(angle_deg);
const CrystalLattice latt_img = latt_base.Multiply(rot.transpose());
const auto n = prediction.Calc(exp_i, latt_img, prediction_settings);