def __eq__(self, other, verbose=False):
if not self.template.__eq__(other.template, verbose=verbose):<EOL><INDENT>return False<EOL><DEDENT>if len(self.detections) != len(other.detections):<EOL><INDENT>return False<EOL><DEDENT>if len(self.detections) != <NUM_LIT:0> and len(other.detections) != <NUM_LIT:0>:<EOL><INDENT>for det, other_det in zip(self.sort().detections,<EOL>other.sort().detections):<EOL><INDENT>if not det.__eq__(other_det, verbose=verbose):<EOL><INDENT>return False<EOL><DEDENT><DEDENT><DEDENT>if len(self.catalog) != len(other.catalog):<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Check equality, rich comparison operator '=='

.. rubric:: Example

>>> family_a = Family(template=Template(name='a'), detections=[])
>>> family_b = Family(template=Template(name='a'), detections=[])
>>> family_a == family_b
True
>>> family_c = Family(template=Template(name='b'))
>>> family_c == family_a
False


Test if families are equal without the same detections

>>> family_a = Family(
...     template=Template(name='a'), detections=[
...     Detection(template_name='a', detect_time=UTCDateTime(0),
...               no_chans=8, detect_val=4.2, threshold=1.2,
...               typeofdet='corr', threshold_type='MAD',
...               threshold_input=8.0)])
>>> family_b = Family(
...     template=Template(name='a'), detections=[
...     Detection(template_name='a', detect_time=UTCDateTime(0) + 10,
...               no_chans=8, detect_val=4.2, threshold=1.2,
...               typeofdet='corr', threshold_type='MAD',
...               threshold_input=8.0)])
>>> family_a == family_b
False
>>> family_c = Family(
...     template=Template(name='a'), detections=[
...     Detection(template_name='a', detect_time=UTCDateTime(0),
...               no_chans=8, detect_val=4.2, threshold=1.2,
...               typeofdet='corr', threshold_type='MAD',
...               threshold_input=8.0),
...     Detection(template_name='a', detect_time=UTCDateTime(0) + 10,
...               no_chans=8, detect_val=4.5, threshold=1.2,
...               typeofdet='corr', threshold_type='MAD',
...               threshold_input=8.0)])
>>> family_a == family_c
False