SpotAnalyze: Use resolution_estimate before filtering spots by count

This commit is contained in:
2025-10-01 10:55:20 +02:00
parent 32d0226bb5
commit 7aa1439f3c
+2 -2
View File
@@ -27,12 +27,12 @@ void SpotAnalyze(const DiffractionExperiment &experiment,
CountSpots(output, spots_out, spot_finding_settings.cutoff_spot_count_low_res);
output.resolution_estimate = GetResolution(spots_out);
FilterSpotsByCount(spots_out, experiment.GetMaxSpotCount());
output.spots = spots_out;
output.resolution_estimate = GetResolution(output.spots);
if ((indexer != nullptr) && spot_finding_settings.indexing) {
auto latt_f = indexer->Run(experiment, output);
auto latt = latt_f.get();