Re: [Numpy-discussion] bug in genfromtxt with missing values?

2011-01-25 Thread Pierre GM
On Jan 24, 2011, at 11:47 PM, Skipper Seabold wrote: Am I misreading the docs or missing something? Consider the following adapted from here: http://docs.scipy.org/doc/numpy/user/basics.io.genfromtxt.html from StringIO import StringIO import numpy as np data = 1, 2, 3\n4, ,5

Re: [Numpy-discussion] bug in genfromtxt with missing values?

2011-01-25 Thread Skipper Seabold
On Tue, Jan 25, 2011 at 11:17 AM, Pierre GM pgmdevl...@gmail.com wrote: On Jan 24, 2011, at 11:47 PM, Skipper Seabold wrote: Am I misreading the docs or missing something?  Consider the following adapted from here: http://docs.scipy.org/doc/numpy/user/basics.io.genfromtxt.html from

Re: [Numpy-discussion] bug in genfromtxt with missing values?

2011-01-25 Thread Bruce Southey
On 01/25/2011 10:56 AM, Skipper Seabold wrote: On Tue, Jan 25, 2011 at 11:17 AM, Pierre GMpgmdevl...@gmail.com wrote: On Jan 24, 2011, at 11:47 PM, Skipper Seabold wrote: Am I misreading the docs or missing something? Consider the following adapted from here:

Re: [Numpy-discussion] bug in genfromtxt with missing values?

2011-01-25 Thread Pierre GM
On Jan 25, 2011, at 9:06 PM, Bruce Southey wrote: Your filling_values is zero so there is this line (1295?) in the code: user_filling_values = filling_values or [] Which of cause presumes your filling_values is not something like 0 or [0]. That's the bug. I forgot that filling_values could

[Numpy-discussion] bug in genfromtxt with missing values?

2011-01-24 Thread Skipper Seabold
Am I misreading the docs or missing something? Consider the following adapted from here: http://docs.scipy.org/doc/numpy/user/basics.io.genfromtxt.html from StringIO import StringIO import numpy as np data = 1, 2, 3\n4, ,5 np.genfromtxt(StringIO(data), delimiter=,, names=a,b,c, missing_values=