Re: [Numpy-discussion] structured array comparisons?

2009-03-08 Thread Stéfan van der Walt
2009/3/7 Matthew Brett matthew.br...@gmail.com: If there are two arrays, it blows up, even comparing to itself: In [49]: a = np.zeros((), dtype=[('f1', 'f8', 8),('f2', 'f8', 2)]) I wonder what the best approach would be. To return a structured array with the same fields, but dtype changed to

Re: [Numpy-discussion] segfaults when passing ndarray subclass to ufunc with out=None

2009-03-08 Thread Darren Dale
On Sun, Feb 8, 2009 at 12:49 PM, Darren Dale dsdal...@gmail.com wrote: I am seeing some really strange behavior when I try to pass an ndarray subclass and out=None to numpy's ufuncs. This example will reproduce the problem with svn numpy, the first print statement yields 1 as expected, the

Re: [Numpy-discussion] strange multiplication behavior with numpy.float64 and ndarray subclass

2009-03-08 Thread Darren Dale
On Wed, Jan 21, 2009 at 12:43 PM, Pierre GM pgmdevl...@gmail.com wrote: On Jan 21, 2009, at 11:34 AM, Darren Dale wrote: I have a simple test script here that multiplies an ndarray subclass with another number. Can anyone help me understand why each of these combinations returns a new

Re: [Numpy-discussion] N-D array interface page is out of date

2009-03-08 Thread Pauli Virtanen
Hi, Fri, 06 Mar 2009 09:16:33 -0800, Andrew Straw wrote: I have updated http://numpy.scipy.org/array_interface.shtml to have a giant warning first paragraph describing how that information is outdated. Additionally, I have updated http://numpy.scipy.org/ to point people to the buffer

[Numpy-discussion] numpy documentation editor - retrieve password?

2009-03-08 Thread Andrew Straw
Hi, I created a login for the numpy documentation editor but cannot remember my password. Would it be possible to have it sent to me or a new one generated? It would be great to have a button on the website so that I could do this myself, but if that's too much pain, my username is AndrewStraw.

Re: [Numpy-discussion] numpy documentation editor - retrieve password?

2009-03-08 Thread Gael Varoquaux
On Sun, Mar 08, 2009 at 11:00:55AM -0700, Andrew Straw wrote: Hi, I created a login for the numpy documentation editor but cannot remember my password. Would it be possible to have it sent to me or a new one generated? It would be great to have a button on the website so that I could do this

Re: [Numpy-discussion] N-D array interface page is out of date

2009-03-08 Thread Andrew Straw
Pauli Virtanen wrote: Hi, Fri, 06 Mar 2009 09:16:33 -0800, Andrew Straw wrote: I have updated http://numpy.scipy.org/array_interface.shtml to have a giant warning first paragraph describing how that information is outdated. Additionally, I have updated http://numpy.scipy.org/ to point

[Numpy-discussion] numpy.scipy.org

2009-03-08 Thread Andrew Straw
Hi all, I have been doing some editing of http://numpy.scipy.org . In general, however, lots of this page is redundant and outdated compared to lots of other documentation that has now sprung up. Shall we kill this page off, redirect it to another page, or continue updating it? (For this latter

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Darren Dale
On Sat, Mar 7, 2009 at 1:23 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Feb 22, 2009 at 7:01 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Feb 22, 2009 at 6:35 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Feb 22, 2009 at 6:28 PM, Pierre GM pgmdevl...@gmail.com wrote: On Feb

[Numpy-discussion] [RFC] running r, octave from python

2009-03-08 Thread Soeren Sonnenburg
Dear all, a Shogun 0.7.1 is out and available at http://www.shogun-toolbox.org which contains one new feature that might be of interest to python-scipy/numpy users. The eierlegendewollmilchsau interface. In case you don't know what this term stands for use google images :-) It is one file that

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Charles R Harris
On Sun, Mar 8, 2009 at 1:04 PM, Darren Dale dsdal...@gmail.com wrote: On Sat, Mar 7, 2009 at 1:23 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Feb 22, 2009 at 7:01 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Feb 22, 2009 at 6:35 PM, Darren Dale dsdal...@gmail.com wrote: On Sun,

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Charles R Harris
On Sun, Mar 8, 2009 at 2:48 PM, Charles R Harris charlesr.har...@gmail.comwrote: On Sun, Mar 8, 2009 at 1:04 PM, Darren Dale dsdal...@gmail.com wrote: On Sat, Mar 7, 2009 at 1:23 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Feb 22, 2009 at 7:01 PM, Darren Dale dsdal...@gmail.com

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Darren Dale
On Sun, Mar 8, 2009 at 4:54 PM, Charles R Harris charlesr.har...@gmail.comwrote: On Sun, Mar 8, 2009 at 2:48 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Mar 8, 2009 at 1:04 PM, Darren Dale dsdal...@gmail.com wrote: On Sat, Mar 7, 2009 at 1:23 PM, Darren Dale

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Darren Dale
On Sun, Mar 8, 2009 at 5:02 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Mar 8, 2009 at 4:54 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Mar 8, 2009 at 2:48 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Mar 8, 2009 at 1:04 PM, Darren Dale

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Charles R Harris
On Sun, Mar 8, 2009 at 3:02 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Mar 8, 2009 at 4:54 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Mar 8, 2009 at 2:48 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Mar 8, 2009 at 1:04 PM, Darren Dale

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Charles R Harris
On Sun, Mar 8, 2009 at 3:27 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Mar 8, 2009 at 5:02 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Mar 8, 2009 at 4:54 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Mar 8, 2009 at 2:48 PM, Charles R Harris

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Darren Dale
On Sun, Mar 8, 2009 at 6:04 PM, Charles R Harris charlesr.har...@gmail.comwrote: On Sun, Mar 8, 2009 at 3:27 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Mar 8, 2009 at 5:02 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Mar 8, 2009 at 4:54 PM, Charles R Harris

Re: [Numpy-discussion] strange multiplication behavior with numpy.float64 and ndarray subclass

2009-03-08 Thread Darren Dale
On Sun, Mar 8, 2009 at 12:31 PM, Darren Dale dsdal...@gmail.com wrote: On Wed, Jan 21, 2009 at 12:43 PM, Pierre GM pgmdevl...@gmail.com wrote: On Jan 21, 2009, at 11:34 AM, Darren Dale wrote: I have a simple test script here that multiplies an ndarray subclass with another number. Can

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Charles R Harris
On Sun, Mar 8, 2009 at 4:38 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Mar 8, 2009 at 6:04 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Mar 8, 2009 at 3:27 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Mar 8, 2009 at 5:02 PM, Darren Dale dsdal...@gmail.com

Re: [Numpy-discussion] strange multiplication behavior with numpy.float64 and ndarray subclass

2009-03-08 Thread Charles R Harris
On Sun, Mar 8, 2009 at 4:42 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Mar 8, 2009 at 12:31 PM, Darren Dale dsdal...@gmail.com wrote: On Wed, Jan 21, 2009 at 12:43 PM, Pierre GM pgmdevl...@gmail.com wrote: On Jan 21, 2009, at 11:34 AM, Darren Dale wrote: I have a simple test

Re: [Numpy-discussion] numpy.fix and subclasses

2009-03-08 Thread Darren Dale
On Sun, Feb 22, 2009 at 11:49 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Feb 22, 2009 at 10:35 PM, Darren Dale dsdal...@gmail.com wrote: I've been finding some numpy functions that could maybe be improved to work better with ndarray subclasses. For example: def fix(x, y=None): x

Re: [Numpy-discussion] strange multiplication behavior with numpy.float64 and ndarray subclass

2009-03-08 Thread Darren Dale
On Sun, Mar 8, 2009 at 7:00 PM, Charles R Harris charlesr.har...@gmail.comwrote: On Sun, Mar 8, 2009 at 4:42 PM, Darren Dale dsdal...@gmail.com wrote: On Sun, Mar 8, 2009 at 12:31 PM, Darren Dale dsdal...@gmail.com wrote: On Wed, Jan 21, 2009 at 12:43 PM, Pierre GM

Re: [Numpy-discussion] numpy.scipy.org

2009-03-08 Thread Stéfan van der Walt
2009/3/8 Andrew Straw straw...@astraw.com: I have been doing some editing of http://numpy.scipy.org . In general, Thanks for keeping an eye on this page! however, lots of this page is redundant and outdated compared to lots of other documentation that has now sprung up. Shall we kill this

Re: [Numpy-discussion] numpy.scipy.org

2009-03-08 Thread Robert Kern
On Sun, Mar 8, 2009 at 14:02, Andrew Straw straw...@astraw.com wrote: Hi all, I have been doing some editing of http://numpy.scipy.org . In general, however, lots of this page is redundant and outdated compared to lots of other documentation that has now sprung up. Shall we kill this page

Re: [Numpy-discussion] N-D array interface page is out of date

2009-03-08 Thread Andrew Straw
Andrew Straw wrote: Pauli Virtanen wrote: Hi, Fri, 06 Mar 2009 09:16:33 -0800, Andrew Straw wrote: I have updated http://numpy.scipy.org/array_interface.shtml to have a giant warning first paragraph describing how that information is outdated. Additionally, I have updated