Skip to content

Commit 729c289

Browse files
committed
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 61f2de5 commit 729c289

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
@@ -736,11 +736,9 @@ def ftrunc(values, decimal=0):
736736
computed_value = dist_icdf_fn(
737737
**point, value=ftrunc(np.exp(dist_logcdf_fn(**point, value=value)), decimal=decimal)
738738
)
739-
npt.assert_almost_equal(
740-
expected_value,
741-
computed_value,
742-
err_msg=f"point: {point}, value: {value}, cdf: {np.exp(dist_logcdf_fn(**point, value=value))}",
743-
)
739+
assert (
740+
expected_value == computed_value
741+
), f"expected_value = {expected_value}, computed_value = {computed_value}, {point}"
744742

745743

746744
def assert_moment_is_expected(model, expected, check_finite_logp=True):

0 commit comments

Comments
 (0)