Author: bugman Date: Wed Aug 31 14:40:14 2011 New Revision: 14547 URL: http://svn.gna.org/viewcvs/relax?rev=14547&view=rev Log: The spin_id_to_data_list error messages are now more informative. 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=14547&r1=14546&r2=14547&view=diff ============================================================================== --- 1.3/generic_fns/mol_res_spin.py (original) +++ 1.3/generic_fns/mol_res_spin.py Wed Aug 31 14:40:14 2011 @@ -2577,7 +2577,7 @@ # Molecule name. mol_name = None if len(mol_info) > 1: - raise RelaxError("The single spin ID should only belong to one molecule, not %s." % mol_info) + raise RelaxError("The single spin ID '%s' should only belong to one molecule, not %s." % (id, mol_info)) if len(mol_info) == 1: mol_name = mol_info[0] @@ -2593,14 +2593,14 @@ # Residue number. res_num = None if len(res_nums) > 1: - raise RelaxError("The single spin ID should only belong to one residue number, not %s." % res_info) + raise RelaxError("The single spin ID '%s' should only belong to one residue number, not %s." % (id, res_info)) elif len(res_nums) == 1: res_num = res_nums[0] # Residue name. res_name = None if len(res_names) > 1: - raise RelaxError("The single spin ID should only belong to one residue name, not %s." % res_info) + raise RelaxError("The single spin ID '%s' should only belong to one residue name, not %s." % (id, res_info)) elif len(res_names) == 1: res_name = res_names[0] @@ -2616,14 +2616,14 @@ # Spin number. spin_num = None if len(spin_nums) > 1: - raise RelaxError("The single spin ID should only belong to one spin number, not %s." % spin_info) + raise RelaxError("The single spin ID '%s' should only belong to one spin number, not %s." % (id, spin_info)) elif len(spin_nums) == 1: spin_num = spin_nums[0] # Spin name. spin_name = None if len(spin_names) > 1: - raise RelaxError("The single spin ID should only belong to one spin name, not %s." % spin_info) + raise RelaxError("The single spin ID '%s' should only belong to one spin name, not %s." % (id, spin_info)) elif len(spin_names) == 1: spin_name = spin_names[0]