[NumPy-Tickets] [NumPy] #1794: Test for loadtxt with a data line of tab delimited spaces
NumPy Trac
numpy-tickets@scipy....
Tue Apr 5 14:03:18 CDT 2011
#1794: Test for loadtxt with a data line of tab delimited spaces
--------------------------+-------------------------------------------------
Reporter: bsouthey | Owner: somebody
Type: enhancement | Status: new
Priority: lowest | Milestone: Unscheduled
Component: numpy.lib | Version: devel
Keywords: loadtxt test |
--------------------------+-------------------------------------------------
This implements a test based on the corner case of a line of spaces
separated by a tab delimiter reported by derek in Ticket 1071. Prior to
this, loadtxt would skip any lines composed of whitespace regardless of
the delimiter even if the whitespace could be considered valid elements.
{{{
dt=np.dtype([('label', 'S4'), ('comment', 'S4')])
a=np.loadtxt(StringIO("aa,bb\n , \ncc,dd"), delimiter=',', dtype=dt)
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1794>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list