[Numpy-discussion] numpy installation

2010-10-04 Thread P Sanjey
I couldn't intially install numpy on python2.4...installing then importing resulted in the following (please read below before answering thanks) >>> import numpy Traceback (most recent call last): File "", line 1, in ? File "/cluster/lib/python2.4/site-packages/numpy/__init__.py", line 147

Re: [Numpy-discussion] ndarray of object dtype

2010-10-04 Thread Robert Kern
On Mon, Oct 4, 2010 at 00:41, Ioan Ferencik wrote: > Hello list, > > I am trying to pass elements of a custom defined with C API. > I have successfully wrapped a type around a C struct. > I intent to create a list with these objects and process it using numpy C API. > So i  create an array: > > ar

Re: [Numpy-discussion] can I mapping a np.darray class with a text file instead of reading the file in to mem?

2010-10-04 Thread Sebastian Haase
Hi, if you have 3 cols of 10 000 000 lines, that should add up 30 Mega-numbers. That is 240 MB for double, and 120 MB for single precision. That should not require a 64bit OS. You probably have a problem because reading from text is using extra memory. Can you not convert the file "line-by-line"

[Numpy-discussion] ndarray of object dtype

2010-10-04 Thread Ioan Ferencik
Hello list, I am trying to pass elements of a custom defined with C API. I have successfully wrapped a type around a C struct. I intent to create a list with these objects and process it using numpy C API. So i create an array: array = (PyArrayObject *)PyArray_ContiguousFromObject(input, PyArr