Skip to content

Commit

Permalink
Bugfixed AtomType equality operator (ParmEd#1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
murfalo authored Jun 26, 2024
1 parent 7f81297 commit cd0f878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parmed/topologyobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -5183,7 +5183,7 @@ def __eq__(self, other):
if self.charge is not other.charge:
return False
elif abs(self.charge - other.charge) > TINY:
return True
return False
# At this point, we have all the attributes we need to compare
return (abs(self.epsilon - other.epsilon) < TINY and
abs(self.rmin - other.rmin) < TINY and
Expand Down

0 comments on commit cd0f878

Please sign in to comment.