mailr20513 - /trunk/lib/software/nmrpipe.py


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

Header


Content

Posted by edward on August 02, 2013 - 20:58:
Author: bugman
Date: Fri Aug  2 20:58:59 2013
New Revision: 20513

URL: http://svn.gna.org/viewcvs/relax?rev=20513&view=rev
Log:
Remove from datalist where empty list starts. These are created where spins 
are skipped for ID = '?-?'.

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@xxxxxxxxxxxxx>

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=20513&r1=20512&r2=20513&view=diff
==============================================================================
--- trunk/lib/software/nmrpipe.py (original)
+++ trunk/lib/software/nmrpipe.py Fri Aug  2 20:58:59 2013
@@ -157,5 +157,14 @@
         # Add 1 to current spectrum counter.
         i += 1
 
+    # Remove from data_all where empty list starts. They are created where 
spins are
+    # skipped for ID = '?-?'.
+    for i in range(len(data_all)):
+        spin = data_all[i]
+        if spin[0] == None and spin[1] == None and spin[2] == None:
+            # Replace the data
+            data_all = data_all[:i]
+            break
+
     # Return the data.
     return data_all




Related Messages


Powered by MHonArc, Updated Fri Aug 02 21:00:01 2013