Skip to content
Snippets Groups Projects
Commit 8902b0d0 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

snglinspiraltable.py: simply .__eq__()

- use .template_id to check for template equality
parent 83f7713a
No related branches found
No related tags found
No related merge requests found
......@@ -35,10 +35,7 @@ class GSTLALSnglInspiral(_snglinspiraltable.GSTLALSnglInspiral):
spin2 = lsctables.SnglInspiral.spin2
def __eq__(self, other):
return not cmp(
(self.ifo, self.end, self.mass1, self.mass2, self.spin1, self.spin2, self.search),
(other.ifo, other.end, other.mass1, other.mass2, other.spin1, other.spin2, other.search)
)
return (self.ifo, self.end, self.template_id) == (other.ifo, other.end, other.template_id)
@property
def process_id(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment