mailr17072 - /branches/interatomic/generic_fns/rdc.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 27, 2012 - 17:10:
Author: bugman
Date: Wed Jun 27 17:10:41 2012
New Revision: 17072

URL: http://svn.gna.org/viewcvs/relax?rev=17072&view=rev
Log:
The rdc.read user function can now handle spin IDs in quotation marks.


Modified:
    branches/interatomic/generic_fns/rdc.py

Modified: branches/interatomic/generic_fns/rdc.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/interatomic/generic_fns/rdc.py?rev=17072&r1=17071&r2=17072&view=diff
==============================================================================
--- branches/interatomic/generic_fns/rdc.py (original)
+++ branches/interatomic/generic_fns/rdc.py Wed Jun 27 17:10:41 2012
@@ -481,6 +481,12 @@
         if error_col:
             error = line[error_col-1]
 
+        # Convert the spin IDs.
+        if spin_id1[0] in ["\"", "\'"]:
+            spin_id1 = eval(spin_id1)
+        if spin_id2[0] in ["\"", "\'"]:
+            spin_id2 = eval(spin_id2)
+
         # Convert and check the value.
         if value != None:
             try:




Related Messages


Powered by MHonArc, Updated Wed Jun 27 18:00:02 2012