Skip to content

allclose and assert_allclose use different defaults #3183

@toddrjen

Description

@toddrjen

numpy.testing.assert_allclose, at least from the documentation, seems to be equivalent to asserting allclose. However, in practice the two are not equivalent, because they use different default arguments.

Specifically, allclose uses default atol=1e-08, while assert_allclose uses default atol=0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions