[Numpy-discussion] .transpose() of memmap array fails to close()

2007-06-07 Thread Glen W. Mabey
Hello, When assigning a variable that is the transpose() of a memmap array, the ._mmap member doesn't get copied, I guess: In [1]:import numpy In [2]:amemmap = numpy.memmap( '/tmp/afile', dtype=numpy.float32, shape=(4,5), mode='w+' ) In [3]:bmemmap = amemmap.transpose() In [4]:bmemmap.close()

Re: [Numpy-discussion] numpy requires tuples for indexing where Numeric allowed them?

2007-06-07 Thread Travis Oliphant
Jim Kleckner wrote: > I'm fighting conversion from Numeric to numpy. > > One change that doesn't seem documented is that I used to be able to > select items using lists and now it seems that I have to convert them to > tuples. Is that correct and is there a function buried in there that > will

Re: [Numpy-discussion] SciPy Journal

2007-06-07 Thread Lou Pecora
Luke, I'd love to see that code and the associated article. I do a lot of NLD. --- Luke <[EMAIL PROTECTED]> wrote: > I think this Journal sounds like an excellent idea. > I have some > python code that calculates the Lyapunov > Characteristic Exponents (all > of them), for a dynamical system t

Re: [Numpy-discussion] numpy requires tuples for indexing where Numeric allowed them?

2007-06-07 Thread Lou Pecora
Hi, Jim, Just wondering why you would use item() rather than index in brackets, i.e. a[i] ? The latter works well in numpy. But maybe I'm missing something. -- Lou Pecora --- Jim Kleckner <[EMAIL PROTECTED]> wrote: > I'm fighting conversion from Numeric to numpy. > > One change that doesn'

[Numpy-discussion] numpy requires tuples for indexing where Numeric allowed them?

2007-06-07 Thread Jim Kleckner
I'm fighting conversion from Numeric to numpy. One change that doesn't seem documented is that I used to be able to select items using lists and now it seems that I have to convert them to tuples. Is that correct and is there a function buried in there that will accept a list for indices? Any

Re: [Numpy-discussion] SciPy Journal

2007-06-07 Thread Luke
I think this Journal sounds like an excellent idea. I have some python code that calculates the Lyapunov Characteristic Exponents (all of them), for a dynamical system that I would be willing to write about and contribute. Do you envision the articles including applications of the algorithms/ ide