Author: bugman Date: Fri Aug 2 17:35:57 2013 New Revision: 20508 URL: http://svn.gna.org/viewcvs/relax?rev=20508&view=rev Log: Replacing a pointer-reference structure to an empty creation of list of lists. Progress sr #3043: (https://gna.org/support/index.php?3043) - support for NMRPipe seriesTab format *.ser. Troels E. Linnet provided this patch. Commit by: tlinset _aaattt_ gmail_dot_com Signed-off-by: Edward d'Auvergne <edward _att_ nmr-relax _dott_ com> Modified: trunk/lib/software/nmrpipe.py Modified: trunk/lib/software/nmrpipe.py URL: http://svn.gna.org/viewcvs/relax/trunk/lib/software/nmrpipe.py?rev=20508&r1=20507&r2=20508&view=diff ============================================================================== --- trunk/lib/software/nmrpipe.py (original) +++ trunk/lib/software/nmrpipe.py Fri Aug 2 17:35:57 2013 @@ -96,12 +96,9 @@ # Create an empty intensity list. intensity_list = [None]*len(spectra) - # Create an empty data list. + # Create the whole empty data_all list, where entries will be replaced later. # Format: H_name, X_name, spin_id, intensity, line. - data = [None, None, None, intensity_list, None] - - # Create the whole data_all list, where entries will be replaced later. - data_all = [data]*len(file_data) + data_all = [[None, None, None, intensity_list, None]]*len(file_data) # Define a current spectrum counter. i = 0