From 729c289a1d9029718570cf23c446c75b101fc56e Mon Sep 17 00:00:00 2001 From: Gokul D Date: Thu, 1 Jun 2023 14:23:09 +0530 Subject: [PATCH] Revert "Tmp testing with np assert_almost_equal print messages." This reverts commit b0c93b77e3d39c81b22325b644cf94c2beeb9e9c. Avoid mypy test failure. This is not needed, we have identified the root cause now. --- pymc/testing.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pymc/testing.py b/pymc/testing.py index a61ae3dbbe..2cafa9e970 100644 --- a/pymc/testing.py +++ b/pymc/testing.py @@ -736,11 +736,9 @@ def ftrunc(values, decimal=0): computed_value = dist_icdf_fn( **point, value=ftrunc(np.exp(dist_logcdf_fn(**point, value=value)), decimal=decimal) ) - npt.assert_almost_equal( - expected_value, - computed_value, - err_msg=f"point: {point}, value: {value}, cdf: {np.exp(dist_logcdf_fn(**point, value=value))}", - ) + assert ( + expected_value == computed_value + ), f"expected_value = {expected_value}, computed_value = {computed_value}, {point}" def assert_moment_is_expected(model, expected, check_finite_logp=True):