IndexAndRefine: Don't allow zero size/very small volume

This commit is contained in:
2026-04-28 18:38:44 +02:00
parent a6326b0377
commit d84cb9079a
+3
View File
@@ -70,6 +70,9 @@ IndexAndRefine::IndexingOutcome IndexAndRefine::DetermineLatticeAndSymmetry(Data
return outcome;
auto latt = indexer_result.lattice[0];
if (latt.CalcVolume() < 1.0)
return outcome;
auto sg = experiment.GetGemmiSpaceGroup();
// If space group and cell provided => always enforce symmetry in refinement