Author: bugman Date: Mon Apr 14 22:00:39 2008 New Revision: 5717 URL: http://svn.gna.org/viewcvs/relax?rev=5717&view=rev Log: Updated the residue_loop() function. 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=5717&r1=5716&r2=5717&view=diff ============================================================================== --- branches/spin_loop_bool/generic_fns/selection.py (original) +++ branches/spin_loop_bool/generic_fns/selection.py Mon Apr 14 22:00:39 2008 @@ -646,14 +646,10 @@ # 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: + if (mol, res) not in select_obj: continue # Yield the residue data container.