Re: [Numpy-discussion] fast putmask implementation

2007-08-20 Thread Stefan van der Walt
On Sat, Aug 18, 2007 at 01:51:50AM -0600, Travis Oliphant wrote: > > Not any more! See the revised PEP 007, > > http://www.python.org/dev/peps/pep-0007/ > > > > In Python 3000 (and in the 2.x series, in new source files), > > we'll switch to a different indentation style: 4 spaces per i

Re: [Numpy-discussion] fast putmask implementation

2007-08-18 Thread Gael Varoquaux
On Sat, Aug 18, 2007 at 01:51:50AM -0600, Travis Oliphant wrote: > I'm fine with this. Some information on how to make sure emacs (and > other editors) does this would be helpful. Under vim, put in your .vimrc: autocmd FileType python set autoindent tabstop=4 shiftwidth=4 smarttab expandtab Ga

Re: [Numpy-discussion] fast putmask implementation

2007-08-18 Thread Travis Oliphant
> Not any more! See the revised PEP 007, > http://www.python.org/dev/peps/pep-0007/ > > In Python 3000 (and in the 2.x series, in new source files), > we'll switch to a different indentation style: 4 spaces per indent, > all spaces (no tabs in any file). The rest will remain the s

Re: [Numpy-discussion] fast putmask implementation

2007-08-16 Thread Eric Firing
David M. Cooke wrote: > On Thu, Aug 16, 2007 at 04:39:02PM -1000, Eric Firing wrote: >> As far as I can see there is no way of using svn diff to deal with >> this automatically, so in the attached revision I have manually removed >> chunks resulting solely from whitespace. >> >> Is there a better

Re: [Numpy-discussion] fast putmask implementation

2007-08-16 Thread Eric Firing
David M. Cooke wrote: On Thu, Aug 16, 2007 at 04:39:02PM -1000, Eric Firing wrote: As far as I can see there is no way of using svn diff to deal with this automatically, so in the attached revision I have manually removed chunks resulting solely from whitespace. Is there a better way to handl

Re: [Numpy-discussion] fast putmask implementation

2007-08-16 Thread David M. Cooke
On Thu, Aug 16, 2007 at 04:39:02PM -1000, Eric Firing wrote: > As far as I can see there is no way of using svn diff to deal with > this automatically, so in the attached revision I have manually removed > chunks resulting solely from whitespace. > > Is there a better way to handle this problem?

Re: [Numpy-discussion] fast putmask implementation

2007-08-16 Thread Eric Firing
David Cournapeau wrote: On 8/17/07, Eric Firing <[EMAIL PROTECTED]> wrote: In looking at maskedarray performance, I found that the filled() function or method is a bottleneck. I think it can be sped up by using putmask instead of indexed assignment, but I found that putmask itself is slower tha

Re: [Numpy-discussion] fast putmask implementation

2007-08-16 Thread David Cournapeau
On 8/17/07, Eric Firing <[EMAIL PROTECTED]> wrote: > In looking at maskedarray performance, I found that the filled() > function or method is a bottleneck. I think it can be sped up by using > putmask instead of indexed assignment, but I found that putmask itself > is slower than it needs to be.

[Numpy-discussion] fast putmask implementation

2007-08-16 Thread Eric Firing
In looking at maskedarray performance, I found that the filled() function or method is a bottleneck. I think it can be sped up by using putmask instead of indexed assignment, but I found that putmask itself is slower than it needs to be. So I followed David Cournapeau's example of fastclip an