ScaleOnTheFly: DiffractionExperiment is first argument to constructor, as this is convention used elsewhere

This commit is contained in:
2026-05-17 09:12:05 +02:00
parent 7212f5a628
commit b0a64fb254
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -275,7 +275,7 @@ std::optional<RotationIndexerResult> IndexAndRefine::Finalize() {
}
IndexAndRefine &IndexAndRefine::ReferenceIntensities(std::vector<MergedReflection> &reference) {
scaling_engine = std::make_unique<ScaleOnTheFly>(reference, experiment);
scaling_engine = std::make_unique<ScaleOnTheFly>(experiment, reference);
return *this;
}
@@ -299,7 +299,7 @@ void IndexAndRefine::ScaleImage(DataMessage &msg) {
}
ScalingResult IndexAndRefine::ScaleAllImages(const std::vector<MergedReflection> &reference, size_t nthreads) {
ScaleOnTheFly scaling(reference, experiment);
ScaleOnTheFly scaling(experiment, reference);
auto result = scaling.Scale(reflections, mosaicity, nthreads);
merge_mask = CalcMergeMask(experiment, result);
return result;