From 11da8b4053f0209317e42f60831abc920d66cbcc Mon Sep 17 00:00:00 2001 From: sroet Date: Tue, 11 May 2021 18:24:26 +0200 Subject: [PATCH] define forgotten ne --- contact_map/contact_trajectory.py | 3 +++ 1 file changed, 3 insertions(+) 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,