Author: bugman Date: Thu Oct 29 18:25:45 2009 New Revision: 9859 URL: http://svn.gna.org/viewcvs/relax?rev=9859&view=rev Log: Sometimes the spin container attached atom variable name is 'attached_proton' and not 'attached_atom'. Modified: branches/bmrb/generic_fns/relax_data.py Modified: branches/bmrb/generic_fns/relax_data.py URL: http://svn.gna.org/viewcvs/relax/branches/bmrb/generic_fns/relax_data.py?rev=9859&r1=9858&r2=9859&view=diff ============================================================================== --- branches/bmrb/generic_fns/relax_data.py (original) +++ branches/bmrb/generic_fns/relax_data.py Thu Oct 29 18:25:45 2009 @@ -287,7 +287,10 @@ atom_name_list.append(str(spin.name)) # The attached atom info. - attached_atom_name_list.append(str(spin.attached_atom)) + if hasattr(spin, 'attached_atom'): + attached_atom_name_list.append(str(spin.attached_atom)) + else: + attached_atom_name_list.append(str(spin.attached_proton)) attached_element_list.append(element_from_isotope(spin.proton_type)) attached_isotope_list.append(str(number_from_isotope(spin.proton_type)))