Skip to content

Commit

Permalink
Revert "Tmp testing with np assert_almost_equal print messages."
Browse files Browse the repository at this point in the history
This reverts commit b0c93b7.

Avoid mypy test failure. This is not needed, we have identified
the root cause now.
  • Loading branch information
gokuld committed Jun 1, 2023
1 parent 61f2de5 commit 729c289
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pymc/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 729c289

Please sign in to comment.