mailr21933 - /trunk/specific_analyses/relax_disp/disp_data.py


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

Header


Content

Posted by edward on December 10, 2013 - 12:27:
Author: bugman
Date: Tue Dec 10 12:27:52 2013
New Revision: 21933

URL: http://svn.gna.org/viewcvs/relax?rev=21933&view=rev
Log:
Python 3 fixes for the relax_disp.r2eff_read_spin user function.

The check for the dispersion point column now only runs if that argument is 
set.  In addition, the
offset column is now also being checked.


Modified:
    trunk/specific_analyses/relax_disp/disp_data.py

Modified: trunk/specific_analyses/relax_disp/disp_data.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_disp/disp_data.py?rev=21933&r1=21932&r2=21933&view=diff
==============================================================================
--- trunk/specific_analyses/relax_disp/disp_data.py (original)
+++ trunk/specific_analyses/relax_disp/disp_data.py Tue Dec 10 12:27:52 2013
@@ -2076,8 +2076,11 @@
     new_ids = []
     for line in file_data:
         # Invalid columns.
-        if disp_point_col > len(line):
+        if disp_point_col != None and disp_point_col > len(line):
             warn(RelaxWarning("The data %s is invalid, no dispersion point 
column can be found." % line))
+            continue
+        if offset_col != None and offset_col > len(line):
+            warn(RelaxWarning("The data %s is invalid, no offset column can 
be found." % line))
             continue
         if data_col > len(line):
             warn(RelaxWarning("The R2eff/R1rho data %s is invalid, no data 
column can be found." % line))




Related Messages


Powered by MHonArc, Updated Tue Dec 10 14:20:01 2013