Re: [Numpy-discussion] numpy array change notifier?

2008-10-30 Thread Christan K .
Erik Tollerud erik.tollerud at gmail.com writes: Is there any straightforward way of notifying on change of a numpy array that leaves the numpy arrays still efficient? You can instantiate the following ndarray derived class with a callable argument. Any change to the data will call the

Re: [Numpy-discussion] numpy array change notifier?

2008-10-30 Thread Steve Schmerler
On Oct 27 16:43 -0400, Pierre GM wrote: Erik, may be you could try the trick presented here : http://www.scipy.org/Subclasses in the __array_wrap__ section. Stupid question: How do I find pages like http://www.scipy.org/Subclasses on scipy.org? I can find them with the search function,

Re: [Numpy-discussion] numpy array change notifier?

2008-10-30 Thread Pierre GM
Steve, Right, there's not a lot of visibility for this one. You could try google 'numpy subclass'. there's also an entry on subclassing in the numpy user guide (through docs.scipy.org). Cheers P. On Thursday 30 October 2008 09:57:03 Steve Schmerler wrote: On Oct 27 16:43 -0400, Pierre GM

Re: [Numpy-discussion] numpy array change notifier?

2008-10-30 Thread Steve Schmerler
On Oct 30 10:06 -0400, Pierre GM wrote: Steve, Right, there's not a lot of visibility for this one. Yes, wouldn't it be better placed in the Cookbook section (or any other suitable place that's visible to anyone entering scipy.org)? Other pages are unfortunately also not visible, like

Re: [Numpy-discussion] numpy array change notifier?

2008-10-27 Thread Pierre GM
On Monday 27 October 2008 16:54:09 Erik Tollerud wrote: Is there any straightforward way of notifying on change of a numpy array that leaves the numpy arrays still efficient? Erik, may be you could try the trick presented here : http://www.scipy.org/Subclasses in the __array_wrap__ section.

Re: [Numpy-discussion] numpy array change notifier?

2008-10-27 Thread Brent Pedersen
On Mon, Oct 27, 2008 at 1:56 PM, Robert Kern [EMAIL PROTECTED] wrote: On Mon, Oct 27, 2008 at 15:54, Erik Tollerud [EMAIL PROTECTED] wrote: Is there any straightforward way of notifying on change of a numpy array that leaves the numpy arrays still efficient? Not currently, no. -- Robert

Re: [Numpy-discussion] numpy array change notifier?

2008-10-27 Thread Ryan May
Brent Pedersen wrote: On Mon, Oct 27, 2008 at 1:56 PM, Robert Kern [EMAIL PROTECTED] wrote: On Mon, Oct 27, 2008 at 15:54, Erik Tollerud [EMAIL PROTECTED] wrote: Is there any straightforward way of notifying on change of a numpy array that leaves the numpy arrays still efficient? Not