Author: bugman Date: Sat Nov 24 21:14:14 2007 New Revision: 3894 URL: http://svn.gna.org/viewcvs/relax?rev=3894&view=rev Log: Fixes for the molecule, residue, and spin loops. The functions do nothing if no molecule-residue-spin data exists. 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=3894&r1=3893&r2=3894&view=diff ============================================================================== --- 1.3/generic_fns/selection.py (original) +++ 1.3/generic_fns/selection.py Sat Nov 24 21:14:14 2007 @@ -413,6 +413,10 @@ # Test the data pipe. pipes.test(pipe) + # Test for the presence of data, and end the execution of this function if there is none. + if not exists_mol_res_spin_data(): + return + # Parse the selection string. select_obj = Selection(selection) @@ -528,6 +532,10 @@ # Test the data pipe. pipes.test(pipe) + + # Test for the presence of data, and end the execution of this function if there is none. + if not exists_mol_res_spin_data(): + return # Parse the selection string. select_obj = Selection(selection) @@ -1048,6 +1056,10 @@ # Test the data pipe. pipes.test(pipe) + # Test for the presence of data, and end the execution of this function if there is none. + if not exists_mol_res_spin_data(): + return + # Parse the selection string. select_obj = Selection(selection)