def min_chans(self, min_chans):
declustered = Party()<EOL>for family in self.families:<EOL><INDENT>fam = Family(family.template)<EOL>for d in family.detections:<EOL><INDENT>if d.no_chans > min_chans:<EOL><INDENT>fam.detections.append(d)<EOL><DEDENT><DEDENT>declustered.families.append(fam)<EOL><DEDENT>self.families = declustered.families<EOL>return self<EOL>
Remove detections with fewer channels used than min_chans

:type min_chans: int
:param min_chans: Minimum number of channels to allow a detection.
:return: Party

.. Note:: Works in place on Party.

.. rubric:: Example

>>> party = Party().read()
>>> print(len(party))
4
>>> party = party.min_chans(5)
>>> print(len(party))
1