[Numpy-discussion] genfromtxt - the return

Christopher Barker Chris.Barker at noaa.gov
Tue Oct 6 16:43:58 EDT 2009


Pierre GM wrote:
>> I think that the default invalid_raise should be True.
> 
> Mmh, OK, that's a +1/) for invalid_raise=true. Anybody else ?

yup -- make it +2 -- ignoring erreos and losing data by default is a 
"bad idea"!

>> One 'feature' is that there is no way to indicate multiple delimiters
>> when the delimiter is whitespace.
>> A B C D
>> 1 2 3 4
>> 1     4 5

I'd say someone has made a very poor choice of file formats!

Unless this s a fixed width file, in which case it should be processes 
as such, rather than as a delimited one. I suppose it wouldn't hurt to 
add that feature to genfromtxt.. or is it there already. Perhaps that's 
what this means:

> Have you tried using a sequence of integers for the delimiter ?

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

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

Chris.Barker at noaa.gov



More information about the NumPy-Discussion mailing list