Author: bugman Date: Sun Apr 20 19:57:44 2008 New Revision: 5870 URL: http://svn.gna.org/viewcvs/relax?rev=5870&view=rev Log: Fix for Selection.contains_mol(). The mol arg is now a keyword arg which defaults to None. Modified: 1.3/generic_fns/selection.py Modified: 1.3/generic_fns/selection.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/selection.py?rev=5870&r1=5869&r2=5870&view=diff ============================================================================== --- 1.3/generic_fns/selection.py (original) +++ 1.3/generic_fns/selection.py Sun Apr 20 19:57:44 2008 @@ -264,14 +264,14 @@ warn(RelaxWarning("The spin identification string " + `spin_id` + " is too complex for the selection object.")) - def contains_mol(self, mol): + def contains_mol(self, mol=None): """Determine if the molecule name, in string form, is contained in this selection object. - @param molecule: The name of the molecule. - @type molecule: str or None - @return: The answer of whether the molecule is contained withing the selection - object. - @rtype: bool + @keyword mol: The name of the molecule. + @type mol: str or None + @return: The answer of whether the molecule is contained withing the selection + object. + @rtype: bool """ # The selection object is a union.