From c4e1f7ec7fa1b735921a95e07b0556831edde125 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Fri, 16 May 2025 01:46:22 -0400 Subject: [PATCH] fix regression in test_HybridFactorGraph.py --- python/gtsam/tests/test_HybridFactorGraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/gtsam/tests/test_HybridFactorGraph.py b/python/gtsam/tests/test_HybridFactorGraph.py index 6edab3449..8650cdcb6 100644 --- a/python/gtsam/tests/test_HybridFactorGraph.py +++ b/python/gtsam/tests/test_HybridFactorGraph.py @@ -287,8 +287,8 @@ class TestHybridGaussianFactorGraph(GtsamTestCase): print(f"P(mode=1; Z) = {marginals[1]}") # Check that the estimate is close to the true value. - self.assertAlmostEqual(marginals[0], 0.23, delta=0.01) - self.assertAlmostEqual(marginals[1], 0.77, delta=0.01) + self.assertAlmostEqual(marginals[0], 0.219, delta=0.01) + self.assertAlmostEqual(marginals[1], 0.781, delta=0.01) # Convert to factor graph using measurements. fg = bayesNet.toFactorGraph(measurements)