-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
ENH: add parameter strict
to assert_allclose
#24680
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To fix the CircleCI failure.
IIUC, I should add a file
? I'll also commit the |
That seems about right, yes. |
[skip actions] [skip cirrus] [skip azp]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. 8000 Learn more.
Two minor tweaks for the reviewer to consider. Feel free to commit.
When this looks good, I'll submit a follow-up for assert_equal
, if that would be helpful?
These will help address #24667 (comment).
@mdhaber Please go ahead and commit your self-review changes so we can get this in. |
[skip actions] [skip cirrus] [skip azp]
Thanks @mattip. That rendered as intended. |
Thanks @mdhaber. Yes, I think |
This PR adds the parameter
strict
tonp.testing.assert_allclose
. Withstrict=True
, the shape and dtype of the two arguments must match for the assertion to pass.Follows the example of gh-21595
Partially addresses suggestion in #24667 (comment)