Re: [Numpy-discussion] Strange behavior in setting masked array values in Numpy 1.1.0

2008-05-31 Thread Pierre GM
On Saturday 31 May 2008 18:35:32 Tony Yu wrote: > On May 31, 2008, at 6:04 PM, Matthieu Brucher wrote: > > Hi, > > > > This is to be expected. You are trying to modify and read the same > > array at the same time, which should never be done. > > Thanks, I'll have to keep this in mind next time. An

Re: [Numpy-discussion] Slice assignment and overlapping views (was: Strange behavior in setting masked array values in Numpy 1.1.0)

2008-05-31 Thread Keith Goodman
On Sat, May 31, 2008 at 3:09 PM, Pauli Virtanen <[EMAIL PROTECTED]> wrote: > > The reason for the strange behavior of slice assignment is that when the > left and right sides in a slice assignment are overlapping views of the > same array, the result is currently effectively undefined. Same is true

Re: [Numpy-discussion] Strange behavior in setting masked array values in Numpy 1.1.0

2008-05-31 Thread Tony Yu
On May 31, 2008, at 6:04 PM, Matthieu Brucher wrote: Hi, This is to be expected. You are trying to modify and read the same array at the same time, which should never be done. Thanks, I'll have to keep this in mind next time. So, what's the best way to rearrange a subarray of an array. Co

Re: [Numpy-discussion] Slice assignment and overlapping views (was: Strange behavior in setting masked array values in Numpy 1.1.0)

2008-05-31 Thread Pauli Virtanen
la, 2008-05-31 kello 17:56 -0400, Tony Yu kirjoitti: [clip] > I've been playing around with some software using numpy 1.0.4 and took > a crack at upgrading it to numpy 1.1.0, but I ran into some strange > behavior when assigning to slices of a masked array. [clip] > In [1]: import numpy > > In

Re: [Numpy-discussion] Strange behavior in setting masked array values in Numpy 1.1.0

2008-05-31 Thread Matthieu Brucher
Hi, This is to be expected. You are trying to modify and read the same array at the same time, which should never be done. Matthieu 2008/5/31 Tony Yu <[EMAIL PROTECTED]>: > Great job getting numpy 1.1.0 out and thanks for including the old API > of masked arrays. > > I've been playing around wi

[Numpy-discussion] Strange behavior in setting masked array values in Numpy 1.1.0

2008-05-31 Thread Tony Yu
Great job getting numpy 1.1.0 out and thanks for including the old API of masked arrays. I've been playing around with some software using numpy 1.0.4 and took a crack at upgrading it to numpy 1.1.0, but I ran into some strange behavior when assigning to slices of a masked array. I made the

Re: [Numpy-discussion] umath ufunc docstrings

2008-05-31 Thread Pauli Virtanen
la, 2008-05-31 kello 15:02 -0500, Travis E. Oliphant kirjoitti: > Pauli Virtanen wrote: > > Hi, > > > > I'd like to adjust the way numpy.core.umath ufunc docstrings are > > defined to make them more easy to handle in the ongoing > > documentation marathon: > > Thanks for your efforts here. It woul

Re: [Numpy-discussion] umath ufunc docstrings

2008-05-31 Thread Travis E. Oliphant
Pauli Virtanen wrote: > Hi, > > I'd like to adjust the way numpy.core.umath ufunc docstrings are defined > to make them more easy to handle in the ongoing documentation marathon: > Thanks for your efforts here. It would be good to get an idea of what problems you are encountering that led you

[Numpy-discussion] umath ufunc docstrings

2008-05-31 Thread Pauli Virtanen
Hi, I'd like to adjust the way numpy.core.umath ufunc docstrings are defined to make them more easy to handle in the ongoing documentation marathon: - Remove the signature magic in ufunc_get_doc - Define ufunc docstrings in a separate module instead of in generate_umath.py, in the same format a

Re: [Numpy-discussion] New documentation web application

2008-05-31 Thread Travis E. Oliphant
Matthew Brett wrote: > Hi, > > >> By being consistent in importing modules using the 'import numpy.fft >> as fft', it can make it more clear that we are importing a module. >> >> I already recommend this usage in the matplotlib coding guide, and >> numpy may want to adopt it as well. >> > >

Re: [Numpy-discussion] numpy import problem

2008-05-31 Thread Alan McIntyre
Bala, One thing I can think of is that you might have multiple versions of Python installed. For example, I have Python 2.4 and 2.5 on my machine, but numpy is only installed for 2.5. Since just running "python" brings up 2.4, sometimes I find myself in the wrong interpreter typing "import nump

[Numpy-discussion] numpy import problem

2008-05-31 Thread Bala subramanian
Dear friends, I installed numpy in a 32-bit machines running with RHEL3. The installation was successful. I tested the installtion by importint numpy inside python interpreter. By once i shutdown the system and restart, and try the same, it says ImportError: No module named numpy. What could be t

Re: [Numpy-discussion] New documentation web application

2008-05-31 Thread Matthew Brett
Hi, > By being consistent in importing modules using the 'import numpy.fft > as fft', it can make it more clear that we are importing a module. > > I already recommend this usage in the matplotlib coding guide, and > numpy may want to adopt it as well. That's an excellent suggestion, seconded. M

Re: [Numpy-discussion] New documentation web application

2008-05-31 Thread John Hunter
On Sat, May 31, 2008 at 4:05 AM, R. Bastian <[EMAIL PROTECTED]> wrote: >> Neat! I really like the layout. The red format warnings are a nice touch: >> http://sd-2116.dedibox.fr/pydocweb/doc/numpy.core.umath.exp/ Hi, I was just reading through this example when I noticed this usage: from matp

Re: [Numpy-discussion] New documentation web application

2008-05-31 Thread Stéfan van der Walt
Hi Bastian 2008/5/31 R. Bastian <[EMAIL PROTECTED]>: > On Thu, 29 May 2008 17:48:10 -0500 > "Nathan Bell" <[EMAIL PROTECTED]> wrote: > >> On Thu, May 29, 2008 at 5:28 PM, Stéfan van der Walt <[EMAIL PROTECTED]> >> wrote: >> > Hi all, >> > >> > The NumPy documentation project has taken another lea

Re: [Numpy-discussion] New documentation web application

2008-05-31 Thread R. Bastian
On Thu, 29 May 2008 17:48:10 -0500 "Nathan Bell" <[EMAIL PROTECTED]> wrote: > On Thu, May 29, 2008 at 5:28 PM, Stéfan van der Walt <[EMAIL PROTECTED]> > wrote: > > Hi all, > > > > The NumPy documentation project has taken another leap forward! Pauli > > Virtanen has, in a week of superhuman codi