Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Allow absolute precision in assert_almost_equal (#13357) #30562

Merged
merged 1 commit into from
Jun 24, 2020

Commits on Jun 21, 2020

  1. ENH: Allow relative and/or absolute precision in assert_almost_equal

    This commit makes `assert_almost_equal` accept both relative and
    absolute precision when comparing numbers, through two new keyword
    arguments: `rtol`, and `atol`, respectively.
    
    Under the hood, `_libs.testing.assert_almost_equal` is now calling
    `math.isclose`, instead of an adaptaion of
    [numpy.testing.assert_almost_equal](https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.testing.assert_almost_equal.html).
    Joao Veiga committed Jun 21, 2020
    Configuration menu
    Copy the full SHA
    d83880c View commit details
    Browse the repository at this point in the history