RotationScaleMerge: fulls-only per-frame scaling (prototype), pooled over sparse frames
Prototype switch --no-scale-partials: skip the per-frame scaling of the partials and let the fulls (scale-fulls) carry the per-frame scale, as XDS does. Without partial scaling a frame whose fulls number fewer than MIN_REFLECTIONS is fitted over the nearest frames on either side that together hold enough (PoolHalfWidth), on the host and in the GPU kernel. Default path unchanged (p.mtz md5 identical on the three profiling sets). Why: on fine-sliced small-molecule sweeps the per-frame partial scale and the partiality model are degenerate within a rocking curve, and the fit swings G 0.23..1.2 with a 180 deg period (XDS's own frame scale: 0.79..0.99). That imprints an hkl-dependent bias common to all equivalents, which R_meas/CC1/2/ISa cannot see but a refinement against the known structure does. And scale-fulls never fitted a frame on such data: a full is filed under one frame, about 8 per frame, below MIN_REFLECTIONS, so every frame kept G = 1. Measured with SHELXL refining the COD structures (R1 >4sig), default -> switch: aspirin 20 keV 0.096 -> 0.062, aspirin 25 keV 0.094 -> 0.046, citric acid 0.161 -> 0.109, HEPES 0.090 -> 0.070 (XDS 0.030-0.038). Proteins lose ISa with the switch (myob 9.1 -> 7.6, cytc 25.8 -> 13.7), so it is not a default; the choice is to be made from the data. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K5K8jvPPbmCrbqnWkddTuB
This commit is contained in:
1 parent
581e1c8ca2
commit
f69339ce63
8 files changed
+110
-24
No files matched your search
@@ -5,6 +5,7 @@
|
||||
#include <catch2/catch_all.hpp>
|
||||
|
||||
#include "../rugnux/Rugnux.h"
|
||||
#include "../image_analysis/scale_merge/RotationScaleMerge.h"
|
||||
|
||||
namespace {
|
||||
// A synthetic sweep whose stage turned `true_scale` times the stored angles. Scored at a scale k,
|
||||
@@ -92,3 +93,15 @@ TEST_CASE("WalkRotationScale_StoredAnglesStand", "[RotationScale]") {
|
||||
CHECK(sweep.index_calls == 0);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("PoolHalfWidth_FitsSparseFramesOverTheirNeighbours", "[RotationScale]") {
|
||||
// 20 fulls of its own: fitted on its own.
|
||||
CHECK(RotationScaleMerge::PoolHalfWidth({0, 20, 0}, 1) == 0);
|
||||
// 5 per frame: two frames either side bring 25 >= 20.
|
||||
const std::vector<int32_t> five(11, 5);
|
||||
CHECK(RotationScaleMerge::PoolHalfWidth(five, 5) == 2);
|
||||
// At the end of the sweep the window grows on the one side there is.
|
||||
CHECK(RotationScaleMerge::PoolHalfWidth(five, 0) == 3);
|
||||
// A sweep that never holds enough stops at its length.
|
||||
CHECK(RotationScaleMerge::PoolHalfWidth({1, 1, 1}, 1) == 3);
|
||||
}
|
||||
Reference in new issue
Block a user