diff --git a/contact_map/contact_trajectory.py b/contact_map/contact_trajectory.py index 046206d..0fce69b 100644 --- a/contact_map/contact_trajectory.py +++ b/contact_map/contact_trajectory.py @@ -104,6 +104,9 @@ def __hash__(self): def __eq__(self, other): return hash(self) == hash(other) + def __ne__(self, other): + return not self.__eq__(other) + @classmethod def from_contacts(cls, atom_contacts, residue_contacts, topology, query=None, haystack=None, cutoff=0.45,