Enable reading MTZ files with reference Fcalc

This commit is contained in:
2026-05-13 14:22:39 +02:00
parent 08bf186766
commit 6aa6890a8b
14 changed files with 100 additions and 20 deletions
+5 -5
View File
@@ -280,15 +280,15 @@ void IndexAndRefine::ScaleImage(size_t n, ScaleOnTheFly &scaling, ScalingResult
result.rotation_wedge_deg[n] = res.wedge;
}
ScalingResult IndexAndRefine::ScaleAllImages(size_t nthreads) {
auto merge_result = MergeAll(experiment, reflections);
ScaleOnTheFly scaling(merge_result, experiment);
ScalingResult IndexAndRefine::ScaleAllImages(const std::vector<MergedReflection> &reference, size_t nthreads) {
ScaleOnTheFly scaling(reference, experiment);
return scaling.Scale(reflections, mosaicity, nthreads);
}
MergeResult IndexAndRefine::Merge() const {
MergeResult IndexAndRefine::Merge(bool calc_statistics) const {
MergeResult out;
out.merged = MergeAll(experiment, reflections);
out.statistics = MergeStats(experiment, out.merged, reflections);
if (calc_statistics)
out.statistics = MergeStats(experiment, out.merged, reflections);
return out;
}