Skip to content

add test to make sure the charge of a residue matches openmm#537

Open
mikemhenry wants to merge 2 commits intomainfrom
feat/improve-res-charge-test
Open

add test to make sure the charge of a residue matches openmm#537
mikemhenry wants to merge 2 commits intomainfrom
feat/improve-res-charge-test

Conversation

@mikemhenry
Copy link
Contributor

Tips

  • Comment "pre-commit.ci autofix" to have pre-commit.ci atomically format your PR.
    Since this will create a commit, it is best to make this comment when you are finished with your work.

Checklist

  • Added a news entry

Developers certificate of origin

Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverting my previous approval, this might be an openmm 8.2 only thing

@codecov
Copy link

codecov bot commented May 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.71%. Comparing base (e1bf4df) to head (87d53fe).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #537   +/-   ##
=======================================
  Coverage   98.71%   98.71%           
=======================================
  Files          40       40           
  Lines        2329     2329           
=======================================
  Hits         2299     2299           
  Misses         30       30           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

assert ref_res.id == res.id
assert ref_res.insertionCode == res.insertionCode
assert ref_res.chain.id == res.chain.id
res_charge = sum([atom.formalCharge for atom in res.atoms() if atom.formalCharge is not None])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can put an if guard on the OpenMM version here that would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants