-
Notifications
You must be signed in to change notification settings - Fork 9
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
Replacing np.allclose
#382
Conversation
for more information, see https://pre-commit.ci
…ollegeLondon/pyrealm into 380-replace-npallclose
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 383-meta-release-200 #382 +/- ##
=======================================================
Coverage ? 96.72%
=======================================================
Files ? 35
Lines ? 2660
Branches ? 0
=======================================================
Hits ? 2573
Misses ? 87
Partials ? 0 ☔ View full report in Codecov by Sentry. |
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.
Seems fine, just checking about one of the tolerances
Description
This PR is to replace the use of
assert np.allclose
in testing withnp.testing.assert_allclose
. The testing version checks that shapes are equal, wherenp.allclose
allows broadcasting before testing values (see #380).test_*.py
files and importnp.testing.assert_allclose
.np.allclose
let it pass.Important
develop
- this isn't something that is a bug exactly in 1.0.0.Fixes #380 (issue)
Type of change
Key checklist
pre-commit
checks:$ pre-commit run -a
$ poetry run pytest
Further checks