[Numpy-svn] r8076 - trunk/numpy/lib

numpy-svn@scip... numpy-svn@scip...
Wed Jan 20 02:10:11 CST 2010


Author: pierregm
Date: 2010-01-20 02:10:11 -0600 (Wed, 20 Jan 2010)
New Revision: 8076

Modified:
   trunk/numpy/lib/io.py
Log:
np.genfromtxt: make sure we're using the actual names when double-checking for missing values

Modified: trunk/numpy/lib/io.py
===================================================================
--- trunk/numpy/lib/io.py	2010-01-19 22:24:33 UTC (rev 8075)
+++ trunk/numpy/lib/io.py	2010-01-20 08:10:11 UTC (rev 8076)
@@ -1428,7 +1428,8 @@
                     mdtype = np.bool
                 outputmask = np.array(masks, dtype=mdtype)
     # Try to take care of the missing data we missed
-    if usemask and output.dtype.names:
+    names = output.dtype.names
+    if usemask and names:
         for (name, conv) in zip(names or (), converters):
             missing_values = [conv(_) for _ in conv.missing_values if _ != '']
             for mval in missing_values:



More information about the Numpy-svn mailing list