RotationIndexer: Fixes

This commit is contained in:
2025-11-30 13:33:13 +01:00
parent 8326e4a59f
commit 48241604f8
3 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ void IndexAndRefine::ProcessImage(DataMessage &msg,
}
if (lattice_candidate) {
if (AnalyzeIndexing(msg, experiment, *lattice_candidate)) {
if (AnalyzeIndexing(msg, experiment_copy, *lattice_candidate)) {
msg.lattice_type = symmetry;
float ewald_dist_cutoff = 0.001f;
+2 -3
View File
@@ -26,8 +26,8 @@ RotationIndexer::RotationIndexer(const DiffractionExperiment &x, IndexerThreadPo
image_stride = 1;
} else {
first_image_to_try_indexing = std::max<int64_t>(min_images_for_indexing,
min_accum_angle_deg / angle_norm_deg);
image_stride = std::ceil(stride_angle_deg / angle_norm_deg);
x.GetIndexingSettings().GetRotationIndexingMinAngularRange_deg() / angle_norm_deg);
image_stride = std::ceil(x.GetIndexingSettings().GetRotationIndexingAngularStride_deg() / angle_norm_deg);
if (image_stride == 0)
image_stride = 1;
}
@@ -151,7 +151,6 @@ std::optional<RotationIndexerResult> RotationIndexer::ProcessImage(int64_t image
return {};
}
std::optional<RotationIndexerResult> RotationIndexer::Finalize(bool retry) {
if (!indexed_lattice || retry)
TryIndex();
-2
View File
@@ -29,8 +29,6 @@ class RotationIndexer {
const DiffractionExperiment& experiment;
constexpr static int64_t max_spots = 60000;
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;
const bool index_ice_rings;