[Numpy-discussion] Little module to get numpy examples

2007-03-18 Thread Bill Baxter
I wrote a little python module to go fetch the Numpy examples from the scipy wiki page, parse them, and print out entries. Is there a good place on the wiki for this? It didn't really seem right in the cookbook, and it doesn't quite fit with documentation. Here's an example of use:

Re: [Numpy-discussion] Is the select function broken in numpy?

2007-03-18 Thread Cory Davis
no sorry, that is the wrong way around I changed it from return choose(S, tuple(choicelist)) to return choose(S.astype(int), tuple(choicelist)) On 3/18/07, Cory Davis <[EMAIL PROTECTED]> wrote: > I have solved the problem by changing line 426 in function_base.py from > return choose(S.

Re: [Numpy-discussion] Is the select function broken in numpy?

2007-03-18 Thread Cory Davis
I have solved the problem by changing line 426 in function_base.py from return choose(S.astype(int), tuple(choicelist)) to return choose(S, tuple(choicelist)) On 3/18/07, Cory Davis <[EMAIL PROTECTED]> wrote: > I have a few day old svn update of numpy where the following code > produces a

[Numpy-discussion] Is the select function broken in numpy?

2007-03-18 Thread Cory Davis
I have a few day old svn update of numpy where the following code produces an error, yet not in numpy-0.9.8 from numpy import * print select([array([1]),array([0])],[array([2]),array([3])]) File "/tmp/tmpY-7FJN/lib64/python/numpy/lib/function_base.py", line 426, in select File "/tmp/tmpY-7FJ