Author: bugman
Date: Tue Mar 10 10:05:25 2015
New Revision: 27800

URL: http://svn.gna.org/viewcvs/relax?rev=27800&view=rev
Log:
Fix for the lib.sequence.check_sequence checking object.

Although rarely used, the check for the spin number was incorrect and half of 
the checks were
instead for the residue number.  This is a classic copy and paste error where 
the residue name and
number checks were copied but not completely converted to spin name and numbers.


Modified:
    trunk/lib/sequence.py

Modified: trunk/lib/sequence.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/sequence.py?rev=27800&r1=27799&r2=27800&view=diff
==============================================================================
--- trunk/lib/sequence.py       (original)
+++ trunk/lib/sequence.py       Tue Mar 10 10:05:25 2015
@@ -143,11 +143,11 @@
 
         # Bad data in column.
         try:
-            res_num = eval(data[res_num_col-1])
-            if not (res_num == None or isinstance(res_num, int)):
-                return RelaxInvalidSeqError(data, "the spin number data '%s' 
is invalid" % data[res_num_col-1])
+            spin_num = eval(data[spin_num_col-1])
+            if not (spin_num == None or isinstance(spin_num, int)):
+                return RelaxInvalidSeqError(data, "the spin number data '%s' 
is invalid" % data[spin_num_col-1])
         except:
-            return RelaxInvalidSeqError(data, "the spin number data '%s' is 
invalid" % data[res_num_col-1])
+            return RelaxInvalidSeqError(data, "the spin number data '%s' is 
invalid" % data[spin_num_col-1])
 
     # Spin name data.
     if spin_name_col:


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

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

Reply via email to