diff --git a/rugnux/RugnuxFirstPass.cpp b/rugnux/RugnuxFirstPass.cpp index 580861825..bc6e1cd84 100644 --- a/rugnux/RugnuxFirstPass.cpp +++ b/rugnux/RugnuxFirstPass.cpp @@ -1472,6 +1472,10 @@ void Rugnux::FirstPassRun::NearTie(const std::string &decision, const std::strin void Rugnux::FirstPassRun::NearTieFrames(const std::string &decision, const std::string &a, int ka, const std::string &b, int kb) const { + // Two lattices that both index fewer frames than the bar the run keeps a lattice on (a sixth of + // the validation frames, see FirstPassRotationIndexing) are not two hypotheses about the crystal. + if (std::max(ka, kb) < static_cast(validation.size()) / 6) + return; const double n = static_cast(validation.size()); const auto var = [n](int k) { const double p = (std::max(k, 0) + 0.5) / (n + 1.0); diff --git a/rugnux/RugnuxFirstPass.h b/rugnux/RugnuxFirstPass.h index 87bd1b85b..12710dbf3 100644 --- a/rugnux/RugnuxFirstPass.h +++ b/rugnux/RugnuxFirstPass.h @@ -150,7 +150,7 @@ struct Rugnux::FirstPassRun { std::string PassTag() const; void NearTie(const std::string &decision, const std::string &a, const std::string &b, double margin, double noise, const char *model) const; - // Two frame counts, a against b. + // Two frame counts, a against b; nothing where neither reaches the run's floor of a sixth. void NearTieFrames(const std::string &decision, const std::string &a, int ka, const std::string &b, int kb) const; // A frame count against the gate it is compared with.