ScaleOnTheFly: DiffractionExperiment is first argument to constructor, as this is convention used elsewhere
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user