RotationIndexer: Remove logic controlling image accumulation
This commit is contained in:
@@ -26,10 +26,10 @@ IndexAndRefine::IndexAndRefine(const DiffractionExperiment &x, IndexerThreadPool
|
||||
}
|
||||
|
||||
IndexAndRefine::IndexingOutcome IndexAndRefine::DetermineLatticeAndSymmetryRotation(DataMessage &msg) {
|
||||
const auto result = rotation_indexer->GetLattice();
|
||||
|
||||
IndexingOutcome outcome(experiment);
|
||||
|
||||
rotation_indexer->ProcessImage(msg.number, msg.spots);
|
||||
auto result = rotation_indexer->GetLattice();
|
||||
if (result) {
|
||||
// For rotation indexing, indexing rate is calculated only for frames, where "global" rotation indexing solution was found
|
||||
msg.indexing_result = false;
|
||||
@@ -292,8 +292,13 @@ void IndexAndRefine::ProcessImage(DataMessage &msg,
|
||||
}
|
||||
|
||||
std::optional<RotationIndexerResult> IndexAndRefine::Finalize() {
|
||||
if (rotation_indexer)
|
||||
if (rotation_indexer) {
|
||||
if (const auto latt = rotation_indexer->GetLattice())
|
||||
return latt;
|
||||
|
||||
rotation_indexer->RunIndexing();
|
||||
return rotation_indexer->GetLattice();
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user