Skip to content

Commit 6a7111a

Browse files
gokuldricardoV94
authored andcommitted
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.
1 parent 64b9bc7 commit 6a7111a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pymc/testing.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -747,11 +747,9 @@ def ftrunc(values, decimal=0):
747747
computed_value = dist_icdf_fn(
748748
**point, value=ftrunc(np.exp(dist_logcdf_fn(**point, value=value)), decimal=decimal)
749749
)
750-
npt.assert_almost_equal(
751-
expected_value,
752-
computed_value,
753-
err_msg=f"point: {point}, value: {value}, cdf: {np.exp(dist_logcdf_fn(**point, value=value))}",
754-
)
750+
assert (
751+
expected_value == computed_value
752+
), f"expected_value = {expected_value}, computed_value = {computed_value}, {point}"
755753

756754

757755
def assert_support_point_is_expected(model, expected, check_finite_logp=True):

0 commit comments

Comments
 (0)