Re: [Numpy-discussion] looking for code advice

2010-09-29 Thread Gordon Wrigley
Hi Josef Thanks for your comments. > numpy.ptp(a, axis=None, out=None) > Range of values (maximum - minimum) along an axis. I feel silly for not having noticed that function, it's right next to amin and amax in the docs. Both your suggestions improved the performance, but only a little, regardl

Re: [Numpy-discussion] looking for code advice

2010-09-29 Thread josef . pktd
On Wed, Sep 29, 2010 at 9:19 AM, wrote: > On Wed, Sep 29, 2010 at 8:25 AM, Gordon Wrigley wrote: >> Hi >> First the disclaimer: This is my first numpy experience, so I have next to >> no idea what I'm doing. >> I've muddled through and managed to put together some code for my current >> problem

Re: [Numpy-discussion] looking for code advice

2010-09-29 Thread josef . pktd
On Wed, Sep 29, 2010 at 8:25 AM, Gordon Wrigley wrote: > Hi > First the disclaimer: This is my first numpy experience, so I have next to > no idea what I'm doing. > I've muddled through and managed to put together some code for my current > problem and now that I have it going I'd like to hear any

[Numpy-discussion] looking for code advice

2010-09-29 Thread Gordon Wrigley
Hi First the disclaimer: This is my first numpy experience, so I have next to no idea what I'm doing. I've muddled through and managed to put together some code for my current problem and now that I have it going I'd like to hear any comments people may have on both my solution and other ways of