Author: bugman Date: Sun Nov 25 12:17:02 2007 New Revision: 3899 URL: http://svn.gna.org/viewcvs/relax?rev=3899&view=rev Log: Removed the selection argument to the generic_fns.selection.exists_mol_res_spin_data() function. The associated unit test has also been removed. Modified: 1.3/generic_fns/selection.py 1.3/test_suite/unit_tests/_generic_fns/test_selection.py Modified: 1.3/generic_fns/selection.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/selection.py?rev=3899&r1=3898&r2=3899&view=diff ============================================================================== --- 1.3/generic_fns/selection.py (original) +++ 1.3/generic_fns/selection.py Sun Nov 25 12:17:02 2007 @@ -181,7 +181,7 @@ """ # No data, hence no spins. - if not exists_mol_res_spin_data(selection): + if not exists_mol_res_spin_data(): return 0 # Init. @@ -345,11 +345,9 @@ print "No residues match." -def exists_mol_res_spin_data(selection=None): +def exists_mol_res_spin_data(): """Function for determining if any molecule-residue-spin data exists. - @param selection: The selection string. - @type selection: str @return: The answer to the question about the existence of data. @rtype: bool """ Modified: 1.3/test_suite/unit_tests/_generic_fns/test_selection.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_generic_fns/test_selection.py?rev=3899&r1=3898&r2=3899&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/_generic_fns/test_selection.py (original) +++ 1.3/test_suite/unit_tests/_generic_fns/test_selection.py Sun Nov 25 12:17:02 2007 @@ -248,16 +248,6 @@ self.assertRaises(RelaxNoPipeError, selection.exists_mol_res_spin_data) - def test_exists_mol_res_spin_data_no_sel(self): - """Determine if molecule-residue-spin data exists when no spins are selected. - - The function tested is generic_fns.selection.exists_mol_res_spin_data(). - """ - - # This should be False. - self.failIf(selection.exists_mol_res_spin_data(selection=':J')) - - def test_molecule_loop(self): """Test the proper operation of the molecule loop with molecule selection.