RotationalIndexer: Work in progress

This commit is contained in:
2025-11-29 15:12:36 +01:00
parent 4948b4b7b0
commit e4da987070
2 changed files with 11 additions and 6 deletions
+10 -5
View File
@@ -9,6 +9,8 @@
#include "RotationIndexer.h"
#include "lattice_search/LatticeSearch.h"
RotationIndexer::RotationIndexer(const DiffractionExperiment &x, IndexerThreadPool &indexer)
: experiment(x),
index_ice_rings(x.GetIndexingSettings().GetIndexIceRings()),
@@ -72,12 +74,15 @@ std::optional<CrystalLattice> RotationIndexer::ProcessImage(int64_t image, const
last_accumulated_image = image;
if (accumulated_images >= min_images_for_indexing && image >= first_image_to_try_indexing) {
// Index
auto indexer_result = indexer_.Run(experiment, coords_).get();
if (!indexer_result.lattice.empty())
indexed_lattice = indexer_result.lattice[0];
// Find lattice type
// Run refinement
if (!indexer_result.lattice.empty()) {
// Find lattice type
auto sym_result = LatticeSearch(indexer_result.lattice[0]);
indexed_lattice = sym_result.conventional;
// Run refinement
//...
}
}
}
+1 -1
View File
@@ -25,7 +25,7 @@ class RotationIndexer {
mutable std::mutex m;
const DiffractionExperiment& experiment;
constexpr static float min_accum_angle_deg = 10.0;
constexpr static float min_accum_angle_deg = 20.0;
constexpr static float stride_angle_deg = 0.5;
constexpr static int64_t min_images_for_indexing = 10;