[Numpy-discussion] Question about improving genfromtxt errors

Christopher Barker Chris.Barker@noaa....
Tue Sep 29 16:27:23 CDT 2009

Pierre GM wrote:
>> How does it handle the wrong number of tokens now? if an exception is
>> raised somewhere, then that's the only place you'd need to anything
>> extra anyway.
> It silently fails outside the loop, when the list of splitted rows is  
> converted into an array: if one row has a different length than the  
> others, a "Creating array from a sequence" error occurs but we can't  
> tell where the problem is (because np.array does not tell us).

Which brings up a good point -- maybe some of this error reporting 
should go into np.array? It would be nice to know at least when the 
failure happened.


Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception


More information about the NumPy-Discussion mailing list