use flag for dead mode removal

release/4.3a0
Varun Agrawal 2025-01-24 18:16:31 -05:00
parent 3ebeff149f
commit fe38776dc4
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ void HybridSmoother::update(const HybridGaussianFactorGraph &graph,
if (maxNrLeaves) {
// `pruneBayesNet` sets the leaves with 0 in discreteFactor to nullptr in
// all the conditionals with the same keys in bayesNetFragment.
bayesNetFragment = bayesNetFragment.prune(*maxNrLeaves);
bayesNetFragment = bayesNetFragment.prune(*maxNrLeaves, removeDeadModes_);
}
// Add the partial bayes net to the posterior bayes net.