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 = []