Author: bugman Date: Thu Jul 10 10:54:29 2008 New Revision: 6931 URL: http://svn.gna.org/viewcvs/relax?rev=6931&view=rev Log: Fix for the counting of header lines. The residue or spin number need not be supplied. Modified: branches/rdc_analysis/generic_fns/rdc.py Modified: branches/rdc_analysis/generic_fns/rdc.py URL: http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/generic_fns/rdc.py?rev=6931&r1=6930&r2=6931&view=diff ============================================================================== --- branches/rdc_analysis/generic_fns/rdc.py (original) +++ branches/rdc_analysis/generic_fns/rdc.py Thu Jul 10 10:54:29 2008 @@ -581,10 +581,9 @@ # Count the number of header lines. header_lines = 0 - num_col = max(res_num_col, spin_num_col) for i in xrange(len(file_data)): try: - int(file_data[i][num_col]) + float(file_data[i][data_col]) except: header_lines = header_lines + 1 else: