Author: bugman Date: Wed Aug 21 15:10:50 2013 New Revision: 20665 URL: http://svn.gna.org/viewcvs/relax?rev=20665&view=rev Log: The lib.spectrum.sparky.read_list() function can now auto-detect the peak volume column and use it for intensities. Modified: trunk/lib/spectrum/sparky.py Modified: trunk/lib/spectrum/sparky.py URL: http://svn.gna.org/viewcvs/relax/trunk/lib/spectrum/sparky.py?rev=20665&r1=20664&r2=20665&view=diff ============================================================================== --- trunk/lib/spectrum/sparky.py (original) +++ trunk/lib/spectrum/sparky.py Wed Aug 21 15:10:50 2013 @@ -69,6 +69,10 @@ # The peak height. elif file_data[0][i] == 'Data' and file_data[0][i+1] == 'Height': + int_col = i + + # The peak volume. + elif file_data[0][i] == 'Intensity': int_col = i # Remove the header.