RotationIndexer: Remove SetLattice() - not sure why it was necessary in the first place
This commit is contained in:
@@ -35,11 +35,6 @@ RotationIndexer::RotationIndexer(const DiffractionExperiment &x, IndexerThreadPo
|
||||
}
|
||||
}
|
||||
|
||||
void RotationIndexer::SetLattice(const CrystalLattice &lattice) {
|
||||
std::unique_lock ul(m);
|
||||
indexed_lattice = lattice;
|
||||
}
|
||||
|
||||
void RotationIndexer::TryIndex() {
|
||||
indexing_tried = true;
|
||||
|
||||
@@ -130,7 +125,13 @@ std::optional<RotationIndexerResult> RotationIndexer::ProcessImage(int64_t image
|
||||
if (accumulated_images >= min_images_for_indexing && image >= first_image_to_try_indexing)
|
||||
TryIndex();
|
||||
}
|
||||
|
||||
if (!indexed_lattice)
|
||||
return {};
|
||||
return RotationIndexerResult{
|
||||
.lattice = indexed_lattice.value(),
|
||||
.search_result = search_result_,
|
||||
.geom = updated_geom_
|
||||
};
|
||||
return GetLattice();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user