Re: [Numpy-discussion] packbits / unpackbits bugs or misfeatures?

2008-08-09 Thread Zachary Pincus
>> Hello all, >> >> numpy.unpackbits has a docstring that states that it returns a >> boolean >> array, but the function instead returns a uint8 array. Should I enter >> this in trac as a documentation bug or a functionality bug? > > Would you mind fixing up the docs on the documentation editor?

Re: [Numpy-discussion] Horizontal lines in diffraction image (NumPyFFT)

2008-08-09 Thread Stéfan van der Walt
2008/8/7 Nadav Horesh <[EMAIL PROTECTED]>: > The 0 padding is easy in numpp/pylab as in octave/matlab, by just adding one > argument. In pylab it is the "a" keyword: > > y = fft(x, n=2*len(x)) Just be careful about using the n parameter for `ifft`; in that case it does not pad correctly. Stéfan

Re: [Numpy-discussion] packbits / unpackbits bugs or misfeatures?

2008-08-09 Thread Stéfan van der Walt
Hey Zach 2008/8/7 Zachary Pincus <[EMAIL PROTECTED]>: > Hello all, > > numpy.unpackbits has a docstring that states that it returns a boolean > array, but the function instead returns a uint8 array. Should I enter > this in trac as a documentation bug or a functionality bug? Would you mind fixing

Re: [Numpy-discussion] Appending data to a big ndarray

2008-08-09 Thread Anne Archibald
2008/8/8 oc-spam66 <[EMAIL PROTECTED]>: > Hello, > > I would like to build a big ndarray by adding rows progressively. > > I considered the following functions : append, concatenate, vstack and the > like. > It appears to me that they all create a new array (which requires twice the > memory). > >

Re: [Numpy-discussion] Horizontal lines in diffraction image (NumPy FFT)

2008-08-09 Thread Anne Archibald
2008/8/8 Matthias Hillenbrand <[EMAIL PROTECTED]>: > My Gaussian beam and the lenses have a diameter of approximately 2^16 > array elements while the total array has a size of 2^18. The absolute > value of the Gaussian beam multiplied by the lenses converges to zero. > Out of this reason I assume

Re: [Numpy-discussion] numpy.fromstring() : error handling ?

2008-08-09 Thread Pauli Virtanen
Fri, 08 Aug 2008 23:18:29 -0700, Christopher Barker wrote: > oc-spam66 wrote: [clip fromfile/fromstring bugs] So that we won't forget this, a summary ticket is here: http://scipy.org/scipy/numpy/ticket/883 Another fromfile/fromstring problem, this time related to locales: http://scipy.org/scipy/n

Re: [Numpy-discussion] np.bincount() won't accept list or array from np.random.beta and acts like len

2008-08-09 Thread Robert Kern
On Sat, Aug 9, 2008 at 15:19, Michael <[EMAIL PROTECTED]> wrote: > Hi list, > > I have found np.bincount() not to behave as expected when provided with > data from np.random.beta. As the docstring states, bincount() only works on sequences of non-negative integers, not floats. beta() returns float

[Numpy-discussion] np.bincount() won't accept list or array from np.random.beta and acts like len

2008-08-09 Thread Michael
Hi list, I have found np.bincount() not to behave as expected when provided with data from np.random.beta. It works fine with lists, but not the type returned by np.random.beta... there seems to be a block on casting too. When it does give output on np.array it just reports the number of items, l

Re: [Numpy-discussion] Links for installing Numpy 1.1.1

2008-08-09 Thread Matthieu Brucher
2008/8/9 Robert Kern <[EMAIL PROTECTED]>: > On Sat, Aug 9, 2008 at 05:52, Matthieu Brucher > <[EMAIL PROTECTED]> wrote: >> Hi, >> >> There seems to be missing parameters when I try to download numpy >> 1.1.1 for Python 2.5 (David's superpack). And when I try to go to the >> numpy project on SF, the

Re: [Numpy-discussion] Links for installing Numpy 1.1.1

2008-08-09 Thread Robert Kern
On Sat, Aug 9, 2008 at 05:52, Matthieu Brucher <[EMAIL PROTECTED]> wrote: > Hi, > > There seems to be missing parameters when I try to download numpy > 1.1.1 for Python 2.5 (David's superpack). And when I try to go to the > numpy project on SF, the project is invalid as well. Is there > something I

Re: [Numpy-discussion] Horizontal lines in diffraction image (NumPyFFT)

2008-08-09 Thread Nadav Horesh
I run your code, and the results seems to me realistic, similar to what I got long back ago --- I do not see artefacts. You may try a more elaborate approach (vector field propagation) using camfr (sf.net/projects/camfr). Nadav. N.B. I tried to attach the image I got b y running your script,

[Numpy-discussion] Links for installing Numpy 1.1.1

2008-08-09 Thread Matthieu Brucher
Hi, There seems to be missing parameters when I try to download numpy 1.1.1 for Python 2.5 (David's superpack). And when I try to go to the numpy project on SF, the project is invalid as well. Is there something I'm missing ? Matthieu -- French PhD student Website : http://matthieu-brucher.devel