Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gufe/tests/test_proteincomponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def assert_topology_equal(ref_top, top):
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
Copy Markdown
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.

ref_res_charge = sum([atom.formalCharge for atom in ref_res.atoms() if atom.formalCharge is not None])
assert res_charge == ref_res_charge, f"mismatch in {ref_res.id=}"

for ref_chain, chain in zip(ref_top.chains(), top.chains()):
assert len(ref_chain) == len(chain)
Expand Down
Loading