Re: [Numpy-discussion] unpack argument in loadtxt/genfromtxt does not work as documented

2010-10-07 Thread Benjamin Root
On Thu, Oct 7, 2010 at 8:59 AM, Pierre GM wrote: > > On Oct 7, 2010, at 3:49 PM, Benjamin Root wrote: > > > > I understand the technicalities of why this occurs, but from a user's > perspective, he is asking for distinct numpy arrays of specified types. The > transposing seems to be almost an un

Re: [Numpy-discussion] unpack argument in loadtxt/genfromtxt does not work as documented

2010-10-07 Thread Pierre GM
On Oct 7, 2010, at 4:01 PM, Chris Fonnesbeck wrote: > On Thu, Oct 7, 2010 at 4:00 AM, Pierre GM wrote: >> >> On Oct 7, 2010, at 4:48 AM, Chris Fonnesbeck wrote: >> >>> The documentation for loadtxt and genfromtxt state that the unpack >>> argument functions as follows: >>> >>> If True, the re

Re: [Numpy-discussion] unpack argument in loadtxt/genfromtxt does not work as documented

2010-10-07 Thread Chris Fonnesbeck
On Thu, Oct 7, 2010 at 8:59 AM, Pierre GM wrote: > > Not needed. The unpack argument is used as the very end of the function > anyway. > Anyhow, could you open a ticket to that effect (else I'm quite likely to > forget about it). > I can open this one. __

Re: [Numpy-discussion] unpack argument in loadtxt/genfromtxt does not work as documented

2010-10-07 Thread Chris Fonnesbeck
On Thu, Oct 7, 2010 at 4:00 AM, Pierre GM wrote: > > On Oct 7, 2010, at 4:48 AM, Chris Fonnesbeck wrote: > >> The documentation for loadtxt and genfromtxt state that the unpack >> argument functions as follows: >> >> If True, the returned array is transposed, so that arguments may be >> unpacked u

Re: [Numpy-discussion] unpack argument in loadtxt/genfromtxt does not work as documented

2010-10-07 Thread Pierre GM
On Oct 7, 2010, at 3:49 PM, Benjamin Root wrote: > > I understand the technicalities of why this occurs, but from a user's > perspective, he is asking for distinct numpy arrays of specified types. The > transposing seems to be almost an unimportant implementation detail because > the user is

Re: [Numpy-discussion] unpack argument in loadtxt/genfromtxt does not work as documented

2010-10-07 Thread Benjamin Root
On Thu, Oct 7, 2010 at 4:00 AM, Pierre GM wrote: > > On Oct 7, 2010, at 4:48 AM, Chris Fonnesbeck wrote: > > > The documentation for loadtxt and genfromtxt state that the unpack > > argument functions as follows: > > > > If True, the returned array is transposed, so that arguments may be > > unpa

Re: [Numpy-discussion] unpack argument in loadtxt/genfromtxt does not work as documented

2010-10-07 Thread Pierre GM
On Oct 7, 2010, at 4:48 AM, Chris Fonnesbeck wrote: > The documentation for loadtxt and genfromtxt state that the unpack > argument functions as follows: > > If True, the returned array is transposed, so that arguments may be > unpacked using x, y, z = loadtxt(...). Provided that all the column

[Numpy-discussion] unpack argument in loadtxt/genfromtxt does not work as documented

2010-10-06 Thread Chris Fonnesbeck
The documentation for loadtxt and genfromtxt state that the unpack argument functions as follows: If True, the returned array is transposed, so that arguments may be unpacked using x, y, z = loadtxt(...). In practice, this does not always occur. I have a csv file of mixed data types, and try impo