From 594a2b4b411bed0705e54c58029a27cea12f9076 Mon Sep 17 00:00:00 2001 From: Ian Sullivan Date: Thu, 26 Oct 2023 16:45:00 -0700 Subject: [PATCH] Don't count bad kernel candidates that are ignored against the maximum --- src/math/SpatialCell.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/SpatialCell.cc b/src/math/SpatialCell.cc index 7c060544b..840ea91b9 100644 --- a/src/math/SpatialCell.cc +++ b/src/math/SpatialCell.cc @@ -149,7 +149,7 @@ void SpatialCell::visitCandidates(CandidateVisitor *visitor, int const nMaxPerCe visitor->processCandidate((*candidate).get()); } catch (lsst::pex::exceptions::Exception &e) { if (ignoreExceptions) { - ; + --i; // Don't count the candidate if it raises an exception } else { LSST_EXCEPT_ADD(e, "Visiting candidate"); throw e;