HKLKeyGenerator: Make HKLKeyGenerator having already prebuilt gemmi data structures
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 15m38s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 16m32s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 17m5s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 17m12s
Build Packages / build:rpm (rocky8) (push) Successful in 17m26s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 18m4s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 18m41s
Build Packages / build:rpm (rocky9) (push) Successful in 11m20s
Build Packages / Generate python client (push) Successful in 35s
Build Packages / Build documentation (push) Successful in 1m2s
Build Packages / Create release (push) Skipped
Build Packages / build:rpm (ubuntu2204) (push) Successful in 12m45s
Build Packages / XDS test (neggia plugin) (push) Successful in 11m6s
Build Packages / XDS test (durin plugin) (push) Successful in 12m27s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 13m33s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 12m48s
Build Packages / DIALS test (push) Successful in 15m5s
Build Packages / Unit tests (push) Successful in 1h1m39s

This commit is contained in:
2026-05-12 19:38:15 +02:00
parent e45d1ff4d3
commit 2fa9293fda
6 changed files with 26 additions and 18 deletions
+5 -6
View File
@@ -92,10 +92,10 @@ ScaleOnTheFly::ScaleOnTheFly(const std::vector<MergedReflection> &ref, const Dif
model(x.GetPartialityModel()),
s(x.GetScalingSettings()),
rot_wedge_deg(x.GetRotationWedgeForScaling()),
refine_rot_wedge(x.GetRefineRotationWedgeInScaling()) {
const HKLKeyGenerator key_generator(s.GetMergeFriedel(), sg);
refine_rot_wedge(x.GetRefineRotationWedgeInScaling()),
hkl_key_generator(s.GetMergeFriedel(), x.GetSpaceGroupNumber().value_or(1)) {
for (const auto &r: ref) {
const auto key = key_generator(r);
const auto key = hkl_key_generator(r);
reference_data[key] = r.I;
}
}
@@ -137,13 +137,12 @@ ScaleOnTheFlyResult ScaleOnTheFly::Scale(std::vector<Reflection> &reflections, s
}
size_t n_reflections = 0;
HKLKeyGenerator key_generator(s.GetMergeFriedel(), sg);
for (const auto &r: reflections) {
const HKLKey key = key_generator(r);
if (!Accept(r))
continue;
const HKLKey key = hkl_key_generator(r);
if (!reference_data.contains(key))
continue;