Author: bugman Date: Fri Aug 31 22:16:37 2012 New Revision: 17404 URL: http://svn.gna.org/viewcvs/relax?rev=17404&view=rev Log: Bug fix for the reading of Sparky peak lists. Spin names with numbers at the end were not being correctly identified. This fix allows Trp indole NE1-HE1 data to be loaded. Modified: trunk/generic_fns/spectrum.py Modified: trunk/generic_fns/spectrum.py URL: http://svn.gna.org/viewcvs/relax/trunk/generic_fns/spectrum.py?rev=17404&r1=17403&r2=17404&view=diff ============================================================================== --- trunk/generic_fns/spectrum.py (original) +++ trunk/generic_fns/spectrum.py Fri Aug 31 22:16:37 2012 @@ -860,11 +860,12 @@ x_assign, h_assign = split('-', line[0]) # The proton info. - h_name = split('([A-Z]+)', h_assign)[-2] + h_row = split('([A-Z]+)', h_assign) + h_name = h_row[-2] + h_row[-1] # The heteronucleus info. x_row = split('([A-Z]+)', x_assign) - x_name = x_row[-2] + x_name = x_row[-2] + x_row[-1] # The residue number. try: