Skip to content

Commit

Permalink
fixes to issue with resetting dihedral_angle to -180 if equivalently 180
Browse files Browse the repository at this point in the history
  • Loading branch information
CalCraven committed Oct 27, 2023
1 parent 831ad15 commit 98fee8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mosdef_dihedral_fit/utils/math_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def dihedral_angle(
dihedral_angle_degrees = -dihedral_angle_degrees

if dihedral_angle_degrees == 180:
dihedral_angle_degrees == -180
dihedral_angle_degrees = -180

return dihedral_angle_degrees

Expand Down

0 comments on commit 98fee8c

Please sign in to comment.