Re: [Numpy-discussion] Feedback on new argument positions for ma.dot and MaskedArray.dot

2015-11-09 Thread Nathaniel Smith
On Mon, Nov 9, 2015 at 4:43 PM, Charles R Harris wrote: > > > On Sun, Nov 8, 2015 at 8:43 PM, Nathaniel Smith wrote: >> >> On Nov 8, 2015 6:00 PM, "Eric Firing" wrote: >> > >> > I also prefer that there be a single convention: either the "out" kwarg >> > is the end of the every signature, or it

Re: [Numpy-discussion] Feedback on new argument positions for ma.dot and MaskedArray.dot

2015-11-09 Thread Charles R Harris
On Sun, Nov 8, 2015 at 8:43 PM, Nathaniel Smith wrote: > On Nov 8, 2015 6:00 PM, "Eric Firing" wrote: > > > > I also prefer that there be a single convention: either the "out" kwarg > is the end of the every signature, or it is the first kwarg in every > signature. It's a very special and unusu

Re: [Numpy-discussion] Question about structure arrays

2015-11-09 Thread Chris Barker
On Sat, Nov 7, 2015 at 1:18 PM, aerojockey wrote: > Inside a > low-level loop, I create a structure array, populate it Python, then turn > it > over to some handwritten C code for processing. can you do that inside bit of the low-level loop in C (or cython?) you often want to put the guts of y

Re: [Numpy-discussion] loadtxt and usecols

2015-11-09 Thread Ralf Gommers
On Mon, Nov 9, 2015 at 7:42 PM, Benjamin Root wrote: > My personal rule for flexible inputs like that is that it should be > encouraged so long as it does not introduce ambiguity. Furthermore, > Allowing a scalar as an input doesn't add a congitive disconnect on the > user on how to specify multi

Re: [Numpy-discussion] loadtxt and usecols

2015-11-09 Thread Benjamin Root
My personal rule for flexible inputs like that is that it should be encouraged so long as it does not introduce ambiguity. Furthermore, Allowing a scalar as an input doesn't add a congitive disconnect on the user on how to specify multiple columns. Therefore, I'd give this a +1. On Mon, Nov 9, 201

Re: [Numpy-discussion] Question about structure arrays

2015-11-09 Thread David Morris
On Nov 7, 2015 2:58 PM, "aerojockey" wrote: > > Hello, > > Recently I made some changes to a program I'm working on, and found that the > changes made it four times slower than before. After some digging, I found > out that one of the new costs was that I added structure arrays. Inside a > low-l

Re: [Numpy-discussion] Failed numpy.test() with numpy-1.10.1 on RHEL 6

2015-11-09 Thread Eric Moore
This fails because numpy uses the function `cacosh` from the libm and on RHEL6 this function has a bug. As long as you don't care about getting the sign right at the branch cut in this function, then it's harmless. If you do care, the easiest solution will be to install something like anaconda th

[Numpy-discussion] loadtxt and usecols

2015-11-09 Thread Irvin Probst
Hi, I've recently seen many students, coming from Matlab, struggling against the usecols argument of loadtxt. Most of them tried something like: loadtxt("foo.bar", usecols=2) or the ones with better documentation reading skills tried loadtxt("foo.bar", usecols=(2)) but none of them understood t