stills merge export: French-Wilson and free-R flags on the merge's workers, output unchanged

ExportReflections ran French-Wilson single-threaded: about 1 s on the P1 search merge of a 25k-frame
stills run (180k reflections). It now uses the merge's thread count, as AssignRfreeFlags does; both
give the same result at any worker count by construction. mtz/unmerged-mtz data, hkl, cif and report
identical (--mode scale, 25k-frame XFEL run).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
leonarski_fandClaude Opus 5.5 committed 2026-10-14 12:14:25 +02:00
1 parent 3c4d730f89
commit 2d118f6df1
1 file changed
+4 -2
+4 -2
View File
@@ -462,8 +462,10 @@ std::vector<MergedReflection> MergeOnTheFly::ExportIntensities() {
std::vector<MergedReflection> MergeOnTheFly::ExportReflections() {
auto out = ExportIntensities();
AssignRfreeFlags(out, space_group, scaling_settings.GetRfreeFraction(), 500, reference_cell);
ApplyFrenchWilson(out, space_group);
AssignRfreeFlags(out, space_group, scaling_settings.GetRfreeFraction(), 500, reference_cell, nthreads);
FrenchWilsonOptions fw_opts;
fw_opts.num_threads = static_cast<int>(nthreads); // the same amplitudes at any worker count
ApplyFrenchWilson(out, space_group, fw_opts);
return out;
}