From 144efd3604561c87bc2290c75c5752cbc77f0bb3 Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Sun, 1 Aug 2021 23:24:33 +0100
Subject: [PATCH] changed the total prob for grid tests

---
 binarycpython/tests/test_grid.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/binarycpython/tests/test_grid.py b/binarycpython/tests/test_grid.py
index e36319fc7..5eb146ff8 100644
--- a/binarycpython/tests/test_grid.py
+++ b/binarycpython/tests/test_grid.py
@@ -554,7 +554,7 @@ class test_grid_evolve(unittest.TestCase):
 
         analytics = test_pop_evolve_1_thread.evolve()
         self.assertLess(
-            np.abs(analytics["total_probability"] - 0.1503788456014623), 1e-10, msg=analytics["total_probability"]
+            np.abs(analytics["total_probability"] - 0.10820655287892997), 1e-10, msg=analytics["total_probability"]
         )
         self.assertTrue(analytics["total_count"] == 10)
 
@@ -589,7 +589,7 @@ class test_grid_evolve(unittest.TestCase):
 
         analytics = test_pop.evolve()
         self.assertLess(
-            np.abs(analytics["total_probability"] - 0.1503788456014623), 1e-10, msg=analytics["total_probability"]
+            np.abs(analytics["total_probability"] - 0.10820655287892997), 1e-10, msg=analytics["total_probability"]
         )  #
         self.assertTrue(analytics["total_count"] == 10)
 
@@ -707,9 +707,8 @@ Printf("TEST_CUSTOM_LOGGING_1 %30.12e %g %g %g %g\\n",
 
         analytics = test_pop.evolve()
         self.assertLess(
-            np.abs(analytics["total_probability"] - 0.1503788456014623), 1e-10, msg=analytics["total_probability"]
+            np.abs(analytics["total_probability"] - 0.10820655287892997), 1e-10, msg=analytics["total_probability"]
         )  #
-        self.assertLess(np.abs(analytics["failed_prob"] - 0.1503788456014623), 1e-10)  #
         self.assertEqual(analytics["failed_systems_error_codes"], [0])
         self.assertTrue(analytics["total_count"] == 10)
         self.assertTrue(analytics["failed_count"] == 10)
-- 
GitLab