mailr11250 - /1.3/relax_io.py


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

Header


Content

Posted by edward on June 28, 2010 - 11:47:
Author: bugman
Date: Mon Jun 28 11:47:58 2010
New Revision: 11250

URL: http://svn.gna.org/viewcvs/relax?rev=11250&view=rev
Log:
Fix for the relax_io.read_spin_data() function for when None is encountered.

The None values are now returned rather than skipped so that the calling code 
can decide what to do
with it.


Modified:
    1.3/relax_io.py

Modified: 1.3/relax_io.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/relax_io.py?rev=11250&r1=11249&r2=11250&view=diff
==============================================================================
--- 1.3/relax_io.py (original)
+++ 1.3/relax_io.py Mon Jun 28 11:47:58 2010
@@ -550,13 +550,6 @@
         if len(line) < min_col_num:
             continue
 
-        # Skip invalid data.
-        if data_col or error_col:
-            if data_col and line[data_col-1] == 'None':
-                continue
-            elif error_col and line[error_col-1] == 'None':
-                continue
-
         # Validate the sequence.
         try:
             generic_fns.sequence.validate_sequence(line, 
mol_name_col=mol_name_col, res_num_col=res_num_col, 
res_name_col=res_name_col, spin_num_col=spin_num_col, 
spin_name_col=spin_name_col)




Related Messages


Powered by MHonArc, Updated Mon Jun 28 12:00:03 2010