Hi Troels, I just noticed in this code that the RelaxError is not very informative. It might be worth updating this to print out line[1] and say that the residue number cannot be extracted from this assignment to help the user understand why their NMRPipe seriesTab file cannot be read. Cheers, Edward On 6 December 2013 11:09, <tlinnet@xxxxxxxxxxxxx> wrote:
Author: tlinnet Date: Fri Dec 6 11:09:22 2013 New Revision: 21820 URL: http://svn.gna.org/viewcvs/relax?rev=21820&view=rev Log: Made reading of NMRView formatted file return the residue number as integer instead of string. Work in progress for Support Request #3044, (https://gna.org/support/index.php?3044) - Load spins from SPARKY list. Modified: trunk/lib/spectrum/nmrview.py Modified: trunk/lib/spectrum/nmrview.py URL: http://svn.gna.org/viewcvs/relax/trunk/lib/spectrum/nmrview.py?rev=21820&r1=21819&r2=21820&view=diff ============================================================================== --- trunk/lib/spectrum/nmrview.py (original) +++ trunk/lib/spectrum/nmrview.py Fri Dec 6 11:09:22 2013 @@ -80,7 +80,7 @@ res_num = line[1].strip('{') res_num = res_num.strip('}') res_num = res_num.split('.') - res_num = res_num[0] + res_num = int(res_num[0]) except ValueError: raise RelaxError("The peak list is invalid.") _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-commits mailing list relax-commits@xxxxxxx To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits