mailr6852 - /branches/rdc_analysis/prompt/rdc.py


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

Header


Content

Posted by edward on July 08, 2008 - 22:20:
Author: bugman
Date: Tue Jul  8 22:20:28 2008
New Revision: 6852

URL: http://svn.gna.org/viewcvs/relax?rev=6852&view=rev
Log:
Made the error column optional in the loading of RDCs.


Modified:
    branches/rdc_analysis/prompt/rdc.py

Modified: branches/rdc_analysis/prompt/rdc.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/prompt/rdc.py?rev=6852&r1=6851&r2=6852&view=diff
==============================================================================
--- branches/rdc_analysis/prompt/rdc.py (original)
+++ branches/rdc_analysis/prompt/rdc.py Tue Jul  8 22:20:28 2008
@@ -285,8 +285,8 @@
             raise RelaxIntError, ('data column', data_col)
 
         # The error column.
-        if type(error_col) != int:
-            raise RelaxIntError, ('error column', error_col)
+        if error_col != None and type(error_col) != int:
+            raise RelaxNoneIntError, ('error column', error_col)
 
         # Column separator.
         if sep != None and type(sep) != str:




Related Messages


Powered by MHonArc, Updated Tue Jul 08 22:40:11 2008