Skip to content

Commit

Permalink
Handle inconsistency of test_conformer_setter
Browse files Browse the repository at this point in the history
  • Loading branch information
martimunicoy committed Oct 15, 2020
1 parent a795f04 commit 896a705
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions offpele/tests/test_toolkits.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,11 @@ def test_conformer_setter(self):
initial_theta = Chem.rdMolTransforms.GetDihedralDeg(conformer,
*dihedral)

if initial_theta < -179:
initial_theta += 180.0
elif initial_theta > 179:
initial_theta -= 180.0

assert abs(initial_theta - -0.002) < 10e-3, \
'Unexpected initial theta value'

Expand Down

0 comments on commit 896a705

Please sign in to comment.