mailr20093 - /trunk/pipe_control/rdc.py


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

Header


Content

Posted by edward on June 13, 2013 - 15:25:
Author: bugman
Date: Thu Jun 13 15:25:46 2013
New Revision: 20093

URL: http://svn.gna.org/viewcvs/relax?rev=20093&view=rev
Log:
Polish for the rdc.read user function.

Comment lines and blank lines are now removed to suppress useless warning 
messages about these lines
containing no valid data.


Modified:
    trunk/pipe_control/rdc.py

Modified: trunk/pipe_control/rdc.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/rdc.py?rev=20093&r1=20092&r2=20093&view=diff
==============================================================================
--- trunk/pipe_control/rdc.py (original)
+++ trunk/pipe_control/rdc.py Thu Jun 13 15:25:46 2013
@@ -40,7 +40,7 @@
 from lib.alignment.rdc import ave_rdc_tensor
 from lib.physical_constants import dipolar_constant, 
return_gyromagnetic_ratio
 from lib.errors import RelaxError, RelaxNoAlignError, RelaxNoRDCError, 
RelaxNoSequenceError, RelaxSpinTypeError
-from lib.io import extract_data, open_write_file, write_data
+from lib.io import extract_data, open_write_file, strip, write_data
 from lib.warnings import RelaxWarning
 
 
@@ -586,8 +586,9 @@
     # Spin specific data.
     #####################
 
-    # Extract the data from the file.
+    # Extract the data from the file, and remove comments and blank lines.
     file_data = extract_data(file, dir, sep=sep)
+    file_data = strip(file_data)
 
     # Loop over the RDC data.
     data = []




Related Messages


Powered by MHonArc, Updated Thu Jun 13 16:00:01 2013