Re: [Numpy-discussion] Bug in genfromtxt with usecols and converters

2014-08-27 Thread Derek Homeier
On 26 Aug 2014, at 09:05 pm, Adrian Altenhoff wrote: >> But you are right that the problem with using the first_values, which should >> of course be valid, >> somehow stems from the use of usecols, it seems that in that loop >> >>for (i, conv) in user_converters.items(): >> >> i in user_c

Re: [Numpy-discussion] Bug in genfromtxt with usecols and converters

2014-08-26 Thread Adrian Altenhoff
Hi Derek, > But you are right that the problem with using the first_values, which should > of course be valid, > somehow stems from the use of usecols, it seems that in that loop > > for (i, conv) in user_converters.items(): > > i in user_converters and in usecols get out of sync. This cert

Re: [Numpy-discussion] Bug in genfromtxt with usecols and converters

2014-08-26 Thread Derek Homeier
Hi Adrian, >> not sure whether to call it a bug; the error seems to arise before reading >> any actual data >> (even on reading from an empty string); when genfromtxt is checking the >> filling_values used >> to substitute missing or invalid data it is apparently testing on default >> testing v

Re: [Numpy-discussion] Bug in genfromtxt with usecols and converters

2014-08-26 Thread Adrian Altenhoff
Hi Derek, thanks for your answer. > not sure whether to call it a bug; the error seems to arise before reading > any actual data > (even on reading from an empty string); when genfromtxt is checking the > filling_values used > to substitute missing or invalid data it is apparently testing on def

Re: [Numpy-discussion] Bug in genfromtxt with usecols and converters

2014-08-26 Thread Derek Homeier
Hi Adrian, > I tried to load data from a csv file into numpy using genfromtxt. I need > only a subset of the columns and want to apply some conversions to the > data. attached is a minimal script showing the error. > In brief, I want to load columns 1,2 and 4. But in the converter > function for t

[Numpy-discussion] Bug in genfromtxt with usecols and converters

2014-08-25 Thread Adrian Altenhoff
Hi, I tried to load data from a csv file into numpy using genfromtxt. I need only a subset of the columns and want to apply some conversions to the data. attached is a minimal script showing the error. In brief, I want to load columns 1,2 and 4. But in the converter function for the 4th column, I