Author: bugman Date: Fri Sep 26 21:43:16 2008 New Revision: 7372 URL: http://svn.gna.org/viewcvs/relax?rev=7372&view=rev Log: Fix for the find_index() function. Modified: 1.3/generic_fns/mol_res_spin.py Modified: 1.3/generic_fns/mol_res_spin.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/mol_res_spin.py?rev=7372&r1=7371&r2=7372&view=diff ============================================================================== --- 1.3/generic_fns/mol_res_spin.py (original) +++ 1.3/generic_fns/mol_res_spin.py Fri Sep 26 21:43:16 2008 @@ -1158,13 +1158,11 @@ # Stop if the spin matches the selection. if (mol, res, spin) in select_obj: - break - - # Return the indices. - if global_index: - return global_i - else: - return mol_index, res_index, spin_index + # Return the indices. + if global_index: + return global_i + else: + return mol_index, res_index, spin_index def generate_spin_id(mol_name=None, res_num=None, res_name=None, spin_num=None, spin_name=None):