[Numpy-discussion] best way for storing extensible data?

2007-05-18 Thread dmitrey
hi all, what is best way for storing data in numpy array? (amount of memory for preallocating is unknown) Currently I use just a Python list, i.e. r = [] for i in xrange(N)#N is very big ... r.append(some_value) Thx, D. ___ Numpy-discussion

Re: [Numpy-discussion] best way for storing extensible data?

2007-05-18 Thread David M. Cooke
On Fri, May 18, 2007 at 03:10:23PM +0300, dmitrey wrote: hi all, what is best way for storing data in numpy array? (amount of memory for preallocating is unknown) Currently I use just a Python list, i.e. r = [] for i in xrange(N)#N is very big ... r.append(some_value) In the

Re: [Numpy-discussion] best way for storing extensible data?

2007-05-18 Thread Anne Archibald
On 18/05/07, David M. Cooke [EMAIL PROTECTED] wrote: It'll act like appending to a list, where it will grow the array (by doubling, I think) when it needs to, so appending each value is amortized to O(1) time. A list though would use more memory per element as each element is a full Python

[Numpy-discussion] NumPy 1.0.3 for Tuesday, May 22

2007-05-18 Thread Travis Oliphant
Hi all, Thank you to the many people who have contributed to cleaning up the tickets in preparation for NumPy 1.0.3 and to the people who have reported bugs and problems. In order to attend to more of the issues and to test out some of Pearu's new changes to numpy.distutils, I've delayed

Re: [Numpy-discussion] Documentation

2007-05-18 Thread Charles R Harris
On 5/14/07, Travis Vaught [EMAIL PROTECTED] wrote: Just to be thorough... enthought's endo package generates the attached docs when running this: python ~/svnrepos/enthought/src/lib/enthought/endo/scripts/endo.py -r core -p core --rst -d docs I don't want to confuse the numpy documentation

Re: [Numpy-discussion] Documentation

2007-05-18 Thread Charles R Harris
On 5/18/07, Alan G Isaac [EMAIL PROTECTED] wrote: On Fri, 18 May 2007, Charles R Harris apparently wrote: There now seem to be three different document creation programs: pydoc, epydoc, and endo. Does anyone know how compatible these all are? I think it would be best to go with the most

[Numpy-discussion] Linux numpy 1.0.1 install failed

2007-05-18 Thread Gong, Shawn (Contractor)
Hi List, I am trying to install numpy 1.0.1 on Linux. (Numeric and numarray have been fine) System info: Redhat Linux kernel 2.4 with gcc 3.2.3 but no separate FORTRAN compiler. It has a Fortran 77 compiler (the one which comes as part of gcc) My questions: 1) install can't find ATLAS (*.a)

Re: [Numpy-discussion] Documentation

2007-05-18 Thread Robert Kern
Alan G Isaac wrote: I hope this is not too off topic. It seems that there is at least one question for Enthought here: since epydoc has the MIT license, why not work on making epydoc traits aware instead of developing endo separately? We are not developing endo. It was written some time

Re: [Numpy-discussion] Linux numpy 1.0.1 install failed

2007-05-18 Thread Robert Kern
Gong, Shawn (Contractor) wrote: Hi List, I am trying to install numpy 1.0.1 on Linux. (Numeric and numarray have been fine) System info: Redhat Linux kernel 2.4 with gcc 3.2.3 but no separate FORTRAN compiler. It has a Fortran 77 compiler (the one which comes as part of gcc) My

Re: [Numpy-discussion] Linux numpy 1.0.1 install failed

2007-05-18 Thread Robert Kern
Gong, Shawn (Contractor) wrote: Thank you Robert for the quick reply. I have been fighting this for a while. site.cfg file is attached. It is sitting in my development dir called /home/sgong/dev/numpy-1.0.1/ (same as setup.py) You are missing some of the ATLAS libraries. See this section

Re: [Numpy-discussion] Linux numpy 1.0.1 install failed

2007-05-18 Thread Robert Kern
Gong, Shawn (Contractor) wrote: Hi Robert, 1) your reply: You are missing some of the ATLAS libraries. Do you mean that I need install more ATLAS libraries? No, sorry, I meant that your site.cfg did not list all of the ATLAS libraries that need to be listed. 2) do I need to add more entries

[Numpy-discussion] Getting ield lenghts in extension module

2007-05-18 Thread Erin Sheldon
Hi all - I'm writing an extension module and I have a PyArrayObject with fields created with PyArray_Zeros from a PyArray_Descr object. In other words, this is an array of non-homogeneous data records, for example: dtype([('x', 'f8'), ('y', 'i4', 2)]) I need to fill the fields with numbers

[Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-18 Thread Gong, Shawn (Contractor)
Sorry Robert, My email sent to mail-list bounced back 5 times. Shawn _ From: Gong, Shawn (Contractor) Sent: Friday, May 18, 2007 5:05 PM To: '[EMAIL PROTECTED]' Subject: RE: [Numpy-discussion] Linux numpy 1.0.1 install failed Hi Robert, I added ref

Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-18 Thread Robert Kern
Gong, Shawn (Contractor) wrote: Hi Robert, I added ref to site.cfg, but still getting the same error message: see out.txt file. It seems that install can't find the libraries in /usr/local/lib/atlas/ (see the out.txt file Line 14: libraries lapack,blas not found in