Re: [Numpy-discussion] Should array iterate over a set?

2007-11-17 Thread Robert Kern
Michael McNeil Forbes wrote: > My expectation was that array would iterate over a set. This is > incorrect: > > >>> array(set([1,2,3])) > array(set([1, 2, 3]), dtype=object) > > Is this the intended behaviour? A trivial work-around that does what > I need is > > >>> array(list(set([1,2,3

[Numpy-discussion] Should array iterate over a set?

2007-11-17 Thread Michael McNeil Forbes
My expectation was that array would iterate over a set. This is incorrect: >>> array(set([1,2,3])) array(set([1, 2, 3]), dtype=object) Is this the intended behaviour? A trivial work-around that does what I need is >>> array(list(set([1,2,3]))) array([1, 2, 3]) but I was wondering if thi

Re: [Numpy-discussion] Bug in arange dtype ">f" was: Using arr.dtype.type to check byteorder-independed dtype fails for bool

2007-11-17 Thread Stefan van der Walt
On Tue, Nov 13, 2007 at 02:53:32PM +0100, Sebastian Haase wrote: > On Nov 13, 2007 2:18 PM, Stefan van der Walt <[EMAIL PROTECTED]> wrote: > > Hi Sebastian > > > > On Tue, Nov 13, 2007 at 01:11:33PM +0100, Sebastian Haase wrote: > > > Hi, > > > I need to check the array dtype in a way that it is ig

[Numpy-discussion] bug in numpy.apply_along_axis: numpy.__version__ '1.0.3.1'

2007-11-17 Thread Sean Ross-Ross
Hi, I think I have found a bug in the function "apply_along_axis". recall that the function definition if apply_along_axis(func1d, axis, arr, *args) This bug occurs if func1d returns a python object without a __len__ attribute and is not a scalar, determined by numpy.core.numeric.isscalar

Re: [Numpy-discussion] numpy : your experiences?

2007-11-17 Thread Steve Lianoglou
Hi Rahul, > a) Can you guys tell me briefly about the kind of problems you are > tackling with numpy and scipy? I'm a grad student "doing" computational biology. I primarily use the NumPy/SciPy/matplotlib triumvirate as a post processing tool to analyze what the heck happened after we run so

Re: [Numpy-discussion] [ANN] Release of the first PyTables video

2007-11-17 Thread Steve Lianoglou
Hi, > = > Release of the first PyTables video > = > > `Carabos `_ is very proud to announce the > first of a series of videos dedicated to introducing the main features > of PyTables to the public in a

Re: [Numpy-discussion] numpy : your experiences?

2007-11-17 Thread Stefan van der Walt
On Sat, Nov 17, 2007 at 02:07:34AM -0500, Anne Archibald wrote: > On 16/11/2007, Rahul Garg <[EMAIL PROTECTED]> wrote: > > > It would be awesome if you guys could respond to some of the following > > questions : > > a) Can you guys tell me briefly about the kind of problems you are > > tackling wi

Re: [Numpy-discussion] segfault with dot

2007-11-17 Thread Matthieu Brucher
2007/11/17, Jesus Torrecilla Pinero <[EMAIL PROTECTED]>: > > numpy-1.0.4.win32-py2.5 from sourceforge (precompiled binary) > CPU: AMD Athlon XP 2600+ > 2.09 GHz, 1.00 Gb RAM > The error report says: > AppName: pythonw.exe AppVer: 0.0.0.0 ModName: _dotblas.pyd > ModVer: 0.0.0.0

Re: [Numpy-discussion] segfault with dot

2007-11-17 Thread Jesus Torrecilla Pinero
numpy-1.0.4.win32-py2.5 from sourceforge (precompiled binary) CPU: AMD Athlon XP 2600+ 2.09 GHz, 1.00 Gb RAM The error report says: AppName: pythonw.exe AppVer: 0.0.0.0 ModName: _dotblas.pyd ModVer: 0.0.0.0 Offset: 0007ecf3 Jesús Torrecilla Pinero ___

Re: [Numpy-discussion] SegFault/double free with simple array mask operation

2007-11-17 Thread Achim Gaedke
Achim Gaedke wrote: > David Cournapeau wrote: > >> Could you open a ticket on the numpy trac system ? (I can confirm the bug) >> >> cheers, >> >> David >> >> > It is Ticket #614 . The version information in trac are outdated, I > could not select version 1.0.3 or 1.0.4 . > Here is th

Re: [Numpy-discussion] segfault with dot

2007-11-17 Thread Matthieu Brucher
What CPU do you have and which version of numpy did you get and where did you get it from ? Matthieu 2007/11/17, Jesus Torrecilla Pinero <[EMAIL PROTECTED]>: > > I am using Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) under Windows > XP and converting a program from Numeric to Numpy. If I hav

[Numpy-discussion] segfault with dot

2007-11-17 Thread Jesus Torrecilla Pinero
I am using Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) under Windows XP and converting a program from Numeric to Numpy. If I have two arrays, say K and T and do dot(K,T) or K*T everything goes well, but if I have a vector b and try dot(K,b) or K*b I get a segfault. I have tried to run the tes