Fix #3743: Modernize deprecated test assertions in hydrogen bond tests - #5400
Fix #3743: Modernize deprecated test assertions in hydrogen bond tests#5400ShivansGupta25 wants to merge 6 commits into
Conversation
|
@ShivansGupta25 Thanks for opening this PR. However, before we can review we ask you put back and answer the AI declaration which was the in the PR template. |
IAlibay
left a comment
There was a problem hiding this comment.
Blocking until relevant declarations are added back into the PR description.
I've restored and completed the AI declaration section. All changes were reviewed and tested locally. Thanks for pointing it out sir. |
814a445 to
cec6637
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5400 +/- ##
===========================================
+ Coverage 93.85% 93.87% +0.02%
===========================================
Files 182 182
Lines 22509 22522 +13
Branches 3202 3206 +4
===========================================
+ Hits 21125 21143 +18
+ Misses 922 917 -5
Partials 462 462 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
orbeckst
left a comment
There was a problem hiding this comment.
Thank you for your contribution. As a first-time contributor, please add yourself to AUTHORS.
Please address the formatting issues (in the file that you edited) that the linter raised.
|
Thanks for the review sir @orbeckst ! I've addressed both requested changes:
The Black GitHub Action still appears to be failing on CI, but locally the modified file passes the formatting check. Please let me know if there's anything else I should update. |
|
We can run this PR through an independent check if you want. The diff is applied to a clean copy at its base commit, your test suite and typechecks run in a locked-down container, and a separate pass reviews the change against #3743. Results come back as a comment with a record you can inspect. Free, no obligation, and we don't touch the PR itself. AI agents do the checking; a human reviews everything before it's posted and answers replies. If that's useful, say so. If not, ignore this and we won't post again. |
|
Thanks, @oaksprout! Yes, I’d appreciate the independent check. Please go ahead and run it against the PR. I’d be happy to review the results and address any issues that come up. |
|
Please read the AI Policy (at the repo root) to understand which uses of AI are acceptable in this project. I’ll have a look at the PR again. Sorry for the delay. You may have to merge current develop into this PR branch so that CI becomes all green. I’d like to see that happen before reviewing. On other recent PRs all listing and docs pass so you should also make it work here. |
Summary
Modernize test assertions in
test_hydrogenbonds_analysis.pyby replacing deprecated NumPy testing helpers with current testing practices.Changes
assert_almost_equalimport.assert_almost_equalassertions with more appropriate modern alternatives.numpy.testing.assert_allclosewhere applicable.Testing
Result:
AI Declaration
AI was used for:
All suggested changes were manually reviewed, verified, and tested by me before submission.