mailr20536 - /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 06, 2013 - 09:02:
Author: bugman
Date: Tue Aug  6 09:02:50 2013
New Revision: 20536

URL: http://svn.gna.org/viewcvs/relax?rev=20536&view=rev
Log:
Python 3 fix for the lib.software.nmrpipe.read_list_intensity_seriestab() 
function.

The inbuilt Python filter() function does not return a list in Python 3, as 
previously, but rather
a filter object.  Therefore a call to list() is required to properly convert 
the data.

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=20536&r1=20535&r2=20536&view=diff
==============================================================================
--- trunk/lib/software/nmrpipe.py (original)
+++ trunk/lib/software/nmrpipe.py Tue Aug  6 09:02:50 2013
@@ -83,7 +83,7 @@
 
     # Make a regular search for Z_A entries.
     Z_A = re.compile("Z_A*")
-    spectra = filter(Z_A.search, varsline)
+    spectra = list(filter(Z_A.search, varsline))
 
     # Find index of Z_A entries.
     spectra_i = []




Related Messages


Powered by MHonArc, Updated Tue Aug 06 09:20:02 2013