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 > r

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 &

[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

Re: [Numpy-discussion] import numpy segmentation fault

2007-03-17 Thread Cory Davis
grab that, it should work. > > I can't find the trac ticket, but I ran into this some weeks ago. > > Zach > > > > On Mar 14, 2007, at 1:36 PM, Cory Davis wrote: > > > Hi there, > > > > I have just installed numpy-1.0.1 from source, which seemed to g

[Numpy-discussion] import numpy segmentation fault

2007-03-14 Thread Cory Davis
Hi there, I have just installed numpy-1.0.1 from source, which seemed to go fine. However when I try to "import numpy" I get a segmentation fault. A have a 64 bit machine running RedHat Enterprise Linux and Python 2.34 Any clues greatly appreciated. Cheers, Cory. __