Author: bugman Date: Mon Apr 14 21:26:08 2008 New Revision: 5713 URL: http://svn.gna.org/viewcvs/relax?rev=5713&view=rev Log: Modified the spin_loop to check the tuple of (mol, res, spin) against the selection object. Modified: branches/spin_loop_bool/generic_fns/selection.py Modified: branches/spin_loop_bool/generic_fns/selection.py URL: http://svn.gna.org/viewcvs/relax/branches/spin_loop_bool/generic_fns/selection.py?rev=5713&r1=5712&r2=5713&view=diff ============================================================================== --- branches/spin_loop_bool/generic_fns/selection.py (original) +++ branches/spin_loop_bool/generic_fns/selection.py Mon Apr 14 21:26:08 2008 @@ -1249,20 +1249,12 @@ # Loop over the molecules. for mol in relax_data_store[pipe].mol: - # Skip the molecule if there is no match to the selection. - if mol not in select_obj: - continue - # Loop over the residues. for res in mol.res: - # Skip the residue if there is no match to the selection. - if res not in select_obj: - continue - # Loop over the spins. for spin in res.spin: # Skip the spin if there is no match to the selection. - if spin not in select_obj: + if (mol, res, spin) not in select_obj: continue # Yield the spin system data container.