IndexerThreadPool: Remove check for spot count prior to scheduling to run the task. This will introduce bias in the result - as images without spots will increase number of non-indexed images.

This commit is contained in:
2026-04-19 20:27:07 +02:00
parent c90e344532
commit dcec74bfb3
@@ -212,8 +212,6 @@ int IndexerThreadPool::GetFreeWorker() {
IndexerResult IndexerThreadPool::Run(const DiffractionExperiment &experiment, const std::vector<Coord> &recip) {
if (experiment.GetIndexingAlgorithm() == IndexingAlgorithmEnum::None)
return IndexerResult{.lattice = {}, .indexing_time_s = 0};
if (recip.size() < viable_cell_min_spots)
return IndexerResult{.lattice = {}, .indexing_time_s = 0};
// Check if there is available worker
const int task = GetFreeWorker();