[Numpy-discussion] Effect of deprecating non-integers for integer function arguments

2013-05-31 Thread Sebastian Berg
Hi, the current numpy master has deprecated non-integers for the use of indexing (not-fancy yet). However I think this should be moved further down in the numpy machinery which means that the conversion utils provided by numpy would generally raise warnings for non-integers. This means that for

Re: [Numpy-discussion] Effect of deprecating non-integers for integer function arguments

2013-05-31 Thread josef . pktd
On Fri, May 31, 2013 at 2:08 PM, Sebastian Berg sebast...@sipsolutions.net wrote: Hi, the current numpy master has deprecated non-integers for the use of indexing (not-fancy yet). However I think this should be moved further down in the numpy machinery which means that the conversion utils

[Numpy-discussion] genfromtxt() skips comments

2013-05-31 Thread Albert Kottke
I noticed that genfromtxt() did not skip comments if the keyword names is not True. If names is True, then genfromtxt() would take the first line as the names. I am proposing a fix to genfromtxt that skips all of the comments in a file, and potentially using the last comment line for names. This

Re: [Numpy-discussion] genfromtxt() skips comments

2013-05-31 Thread Benjamin Root
On Fri, May 31, 2013 at 5:08 PM, Albert Kottke albert.kot...@gmail.comwrote: I noticed that genfromtxt() did not skip comments if the keyword names is not True. If names is True, then genfromtxt() would take the first line as the names. I am proposing a fix to genfromtxt that skips all of the

Re: [Numpy-discussion] genfromtxt() skips comments

2013-05-31 Thread Albert Kottke
I agree that last comment line before the first line of data is more descriptive. Regarding the location of the names. I thought taking it from the last comment line before the first line of data made sense because it would permit reading of just the data with np.loadtxt(), but also permit

[Numpy-discussion] 1.8 release update

2013-05-31 Thread Charles R Harris
Hi All, Most of the PR's that were mentioned as desirable for the 1.8 release have been merged, or look to be merged in the next week or two. The current list of blockershttps://github.com/numpy/numpy/issues?milestone=1page=1state=opendoesn't look to severe to me but I suspect that it is

[Numpy-discussion] Re: genfromtxt() skips comments

2013-05-31 Thread Pierre GM
On May 31, 2013 at 23:08:18 , Albert Kottke (albert.kot...@gmail.com) wrote: I noticed that genfromtxt() did not skip comments if the keyword names is not True. If names is True, then genfromtxt() would take the first line as the names. I am proposing a fix to genfromtxt that skips all of the

Re: [Numpy-discussion] genfromtxt() skips comments

2013-05-31 Thread Albert Kottke
Now try the same thing with np.recfromcsv(). I get the following (Python 3.3): import io b = io.BytesIO(b!blah\n!blah\n!blah\n!A:B:C\n1:2:3\n4:5:6\n) np.recfromcsv(b, delimiter=':', comments='!') ... ValueError: Some errors were detected ! Line #5 (got 3 columns instead of 1) Line #6